aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhpa <hpa>2003-11-26 03:08:29 +0000
committerhpa <hpa>2003-11-26 03:08:29 +0000
commit0fab936237d1b5fb713f291dfe6aa7c342c7d246 (patch)
tree74910a17cdab46400f8d1c824f64075d2ea1356d
parent425c329696d6c1c1a891c97d1bd095b4ea498ceb (diff)
downloadsyslinux.git-0fab936237d1b5fb713f291dfe6aa7c342c7d246.tar.gz
syslinux.git-0fab936237d1b5fb713f291dfe6aa7c342c7d246.tar.xz
syslinux.git-0fab936237d1b5fb713f291dfe6aa7c342c7d246.zip
Clean up generating dotted-quad addresses
-rw-r--r--pxelinux.asm16
1 files changed, 8 insertions, 8 deletions
diff --git a/pxelinux.asm b/pxelinux.asm
index ca07cf66..7b168119 100644
--- a/pxelinux.asm
+++ b/pxelinux.asm
@@ -2022,25 +2022,25 @@ gendotquad:
mov cx,4
.genchar:
push eax
+ cmp al,100
+ jb .lt100
+
aam 100
; Now AH = 100-digit; AL = remainder
- cmp ah, 0
- je .lt100
add ah,'0'
mov [es:di],ah
inc di
- aam 10
- ; Now AH = 10-digit; AL = remainder
- jmp short .tendigit
+
.lt100:
+ cmp al,10
+ jb .lt10
+
aam 10
; Now AH = 10-digit; AL = remainder
- cmp ah, 0
- je .lt10
-.tendigit:
add ah,'0'
mov [es:di],ah
inc di
+
.lt10:
add al,'0'
stosb