mirror of
https://github.com/samsonjs/sectorlisp.git
synced 2026-04-27 14:57:41 +00:00
shave some bytes
- setting of SS is not interruptible, so no need to guard it; - direction flag is cleared by BIOS code, even on the XT.
This commit is contained in:
parent
6000841378
commit
d66e5d984f
2 changed files with 3 additions and 3 deletions
Binary file not shown.
|
|
@ -42,11 +42,11 @@ begin: xor %bx,%bx # we use the tiny memory model
|
||||||
push %cs # that's the bios load address
|
push %cs # that's the bios load address
|
||||||
pop %es # therefore NULL points to NUL
|
pop %es # therefore NULL points to NUL
|
||||||
push %cs # terminated NIL string above!
|
push %cs # terminated NIL string above!
|
||||||
cli # disables hardware interrupts
|
#cli # disables hardware interrupts
|
||||||
pop %ss # disable nonmaskable ones too
|
pop %ss # disable nonmaskable ones too
|
||||||
mov %bx,%sp # use highest address as stack
|
mov %bx,%sp # use highest address as stack
|
||||||
sti # reenable hardware interrupts
|
#sti # reenable hardware interrupts
|
||||||
cld # normalize the direction flag
|
#cld # normalize the direction flag
|
||||||
inc %bx
|
inc %bx
|
||||||
inc %bx
|
inc %bx
|
||||||
main: mov $0x8000,%cx # dl (g_look) is zero or cr
|
main: mov $0x8000,%cx # dl (g_look) is zero or cr
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue