You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
563 B
NASM
35 lines
563 B
NASM
[org 0x1000]
|
|
|
|
|
|
jmp start
|
|
data:
|
|
msg db ' POETIC SOFTWARE',0
|
|
|
|
start:
|
|
mov dl,7h
|
|
mov ah,2
|
|
int 21h
|
|
|
|
MOV AH, 06h ; Scroll up function
|
|
XOR AL, AL ; Clear entire screen
|
|
XOR CX, CX ; Upper left corner CH=row, CL=column
|
|
MOV DX, 184FH ; lower right corner DH=row, DL=column
|
|
MOV BH, 1Eh ; YellowOnBlue
|
|
INT 10H
|
|
|
|
mov si, msg
|
|
call print ; print is a function, use CALL instead of JMP
|
|
|
|
cli
|
|
hlt
|
|
print:
|
|
lodsb
|
|
or al, al
|
|
jz exit
|
|
mov ah,0x0e
|
|
int 10h
|
|
jmp print
|
|
exit:
|
|
ret
|
|
|