summaryrefslogtreecommitdiffstats
path: root/basic.s
diff options
context:
space:
mode:
Diffstat (limited to 'basic.s')
-rw-r--r--basic.s48
1 files changed, 24 insertions, 24 deletions
diff --git a/basic.s b/basic.s
index 5f14ecb..8b20628 100644
--- a/basic.s
+++ b/basic.s
@@ -1,24 +1,24 @@
-putcharhex: ; bl=argument
- pusha
- mov ah, 0x0e
- mov al, bl
- and al, 0xf0
- shr al, 4
- call fourbit2hex
- int 0x10
- mov al, bl
- and al, 0x0f
- call fourbit2hex
- int 0x10
- popa
- ret
-fourbit2hex: ; al=argument=result
- cmp al, 10
- jae fourbit2hex_alpha
- add al, '0'
- ret
-fourbit2hex_alpha:
- add al, 'A'
- sub al, 10
- ret
-
+putcharhex: ; bl=argument
+ pusha
+ mov ah, 0x0e
+ mov al, bl
+ and al, 0xf0
+ shr al, 4
+ call fourbit2hex
+ int 0x10
+ mov al, bl
+ and al, 0x0f
+ call fourbit2hex
+ int 0x10
+ popa
+ ret
+fourbit2hex: ; al=argument=result
+ cmp al, 10
+ jae fourbit2hex_alpha
+ add al, '0'
+ ret
+fourbit2hex_alpha:
+ add al, 'A'
+ sub al, 10
+ ret
+