2 ms·
i myself stopped using my language of choice because it generated this assembler for a simple function: org 100h jmp start table1 db 97 dup (' ') table2 db 97
by utx00 18y ago
i myself stopped using my language of choice because it generated this assembler for a simple function:
org 100h
jmp start
table1 db 97 dup (' ')
table2 db 97 dup (' ')
start:
lea bx, table1
lea si, string1
call parse
lea dx, string1
mov ah, 09
int 21h
lea bx, table2
lea si, string1
call parse
lea dx, string1
mov ah, 09
int 21h
mov ah, 0
int 16h
ret
parse proc near
next_char:
cmp [si], '$'
je end_of_string
mov al, [si]
cmp al, 'a'
jb skip
cmp al, 'z'
ja skip
xlatb
mov [si], al
skip:
inc si
jmp next_char
end_of_string:
ret
parse endp
end