On at 2022-07-12 21:59 +0200, C. Masloch wrote:
On at 2022-07-12 15:45 -0400, Steve Nickolas wrote:
The new "new2F":
new2F: cmp ah, 0xB0 ; is it ours?
je .2
.1: jmp 0:0
.2: cmp al, 1
ja .1 ; >1 - chain
mov al, 0xFF ; needs set for both functions.
je .3 ; 1 - where are we?
iret ; 0 - are we here?
.3: mov word ds:[bx], entry
mov ds:[bx+2], cs
iret
old2F equ .1+1
...probably as codegolfed as it's going to get.
Found another byte to save:
Replace "je .3" then "iret" by "jne .3" then put the ".3" label before
the "iret". You only need the one iret at the very end, and the jump
after "mov al, 0FFh" should branch to it.
Regards,
ecm
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel