mirror of
https://gitlab.os-k.eu/os-k-team/kvisc.git
synced 2023-08-25 14:05:46 +02:00
fix
This commit is contained in:
parent
0d5fd176e3
commit
1b7f72cb43
15
dos/dos.k
15
dos/dos.k
@ -1,20 +1,21 @@
|
||||
; The OS/K Team licences this file to you under the MIT license.
|
||||
; See the LICENSE file in the project root for more information.
|
||||
|
||||
hw = "Hello World\n:)"
|
||||
|
||||
;
|
||||
; Entry point
|
||||
;
|
||||
main:
|
||||
_start:
|
||||
; Initializes the stack
|
||||
mov rbp, 0x200000
|
||||
mov rsp, rbp
|
||||
|
||||
mov ax0, hw
|
||||
call print
|
||||
|
||||
call main
|
||||
stop
|
||||
|
||||
include "dos/print.k"
|
||||
.1:
|
||||
stop
|
||||
jmp .1
|
||||
|
||||
include "dos/print.k"
|
||||
include "dos/main.k"
|
||||
|
||||
|
17
dos/main.k
Normal file
17
dos/main.k
Normal file
@ -0,0 +1,17 @@
|
||||
; The OS/K Team licences this file to you under the MIT license.
|
||||
; See the LICENSE file in the project root for more information.
|
||||
|
||||
hw = "Hello World\n:)"
|
||||
|
||||
;
|
||||
; Main function
|
||||
;
|
||||
main:
|
||||
enter
|
||||
|
||||
mov ax0, hw
|
||||
call print
|
||||
|
||||
leave
|
||||
ret
|
||||
|
Loading…
x
Reference in New Issue
Block a user