Removed very broken and bad code that could've corrupted memory in other segments, updated hello.asm accordingly

This commit is contained in:
Xnoe 2021-08-30 07:26:54 +01:00
parent df9f175662
commit 703a23dfab
Signed by: xnoe
GPG Key ID: 45AC398F44F0DAFE
2 changed files with 6 additions and 15 deletions

View File

@ -1,13 +1,14 @@
mov ax, 3000h mov ax, 3000h
mov ds, ax mov ds, ax
push hello_world_str mov si, hello_world_str
mov ah, 01h mov ah, 01h
int 22h int 22h
retf retf
hello_world_str db "Hello, World!", 13, 10, 13, 10, 0 hello_world_str db "Hello, World!", 13, 10, 13, 10, 0
new_line db 13, 10, 0
buffer: buffer:
times 32 db 0 times 32 db 0

View File

@ -364,25 +364,15 @@ _decode_buffer:
times 11 db 0 times 11 db 0
ihdlr: ihdlr:
pop word [_ihdlr_stack0]
pop word [_ihdlr_stack1]
pop word [_ihdlr_stack2]
cmp ah, 01h cmp ah, 01h
jne _ihdlr_2 jne _ihdlr_2
push si
call print call print
_ihdlr_2: _ihdlr_2:
cmp ah, 02h cmp ah, 02h
jne _ihdlr_3 jne _ihdlr_3
push si
push di
call readline call readline
_ihdlr_3: _ihdlr_3:
iret
push word [_ihdlr_stack2]
push word [_ihdlr_stack1]
push word [_ihdlr_stack0]
iret
_ihdlr_stack0 dw 0
_ihdlr_stack1 dw 0
_ihdlr_stack2 dw 0