Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MOV ex,0
- MOV sp,0
- SEND ex,0x2007
- CALL newline
- loop:
- CALL newline
- MOV dx,welcome
- CALL print
- CALL newline
- MOV dx,name
- CALL print
- pressenterlumage:
- RECV dx,0
- SEND ex,dx
- CMP dx,10
- JNE pressenterlumage
- CALL newline
- MOV dx,died
- CALL print
- CALL newline
- CALL newline
- agsk:
- MOV dx,again
- CALL print
- RECV dx,0
- SEND 0,dx
- CALL newline
- ;check Y/N
- OR dx,0x20 ;convert to lowercase
- CMP dx,115
- JG loop
- MOV dx,yes
- CALL print
- CALL newline
- JMP loop
- ;print w/o line break
- print:
- MOV cx,[dx]
- CMP cx,0
- JE exit
- SEND 0,cx
- add dx,1
- JMP print
- exit:
- RET
- ;line break
- newline:
- SEND ex,0x12E0
- SEND ex,0x3000
- RET
- welcome:
- dw "Welcome to the Awesome Epic"
- dw 0x12E0
- dw 0x3000
- dw "Amazing Adventure Game!"
- dw 0
- name:
- dw "What is your name? "
- dw 0
- again:
- dw "Do you want to play again?(y/n)"
- dw 0
- died:
- dw "You Died."
- dw 0
- yes:
- dw "Yes you do!"
- dw 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement