We have made it this far without it, but it seems like a disaster
waiting to happen. We can afford the extra four bytes in sector 1.
; messages, so it should be OK.
;
writestr_early:
+ pushad
.loop: lodsb
and al,al
jz .return
mov bx,0007h ; Attribute
int 10h
jmp short .loop
-.return: ret
+.return: popad
+ ret
; getlinsecsr: save registers, call getlinsec, restore registers
; messages, so it should be OK.
;
writestr_early:
+ pushad
.loop: lodsb
and al,al
jz .return
mov bx,0007h ; Attribute
int 10h
jmp short .loop
-.return: ret
+.return: popad
+ ret
; getlinsecsr: save registers, call getlinsec, restore registers