1
0
mirror of https://gitlab.os-k.eu/os-k-team/kvisc.git synced 2023-08-25 14:05:46 +02:00
kvisc/dos/main.k
julianb0 18747ae31a
dos
2019-05-30 19:33:22 +02:00

40 lines
493 B
Plaintext

; The OS/K Team licenses this file to you under the MIT license.
; See the LICENSE file in the project root for more information.
;
; Main function
;
main:
enter
mov ax0, .msg
call print
mov ax0, .buf
mov ax1, .msg
call strrev
prn 10
mov ax0, .buf
call print
leave
ret
.msg = "Hello World :)"
.buf = "!!!!!!!!!!!!!!!!!!!!!"
;
; Exit function
;
exit:
enter
mov ax0, .msg
call print
leave
ret
.msg = "Goodbye World :(\n"