Files
assm-test/misc/test.asm
T

27 lines
506 B
NASM

;.org 0x100
.db msg "Hello, world!", 0
.db more_stuff "AA", 0
copy r7, msg ; //
cmp r8, r3 ;1000 1111
add r4, r1
sub r1, r8
int 20
jz 45
jmp msg
in 10
call more_stuff
ret
yld
;copy r1, 45 ;//B0 = 10110000
;copy 2, 45
;loop:
; cmp r1, 0
; jz loop
; add r1, 1
;mov r1, 5 ; move the immediate value 5 into r1
;add r1,5 ; add 5 into r1
;int 21 ; maybe that will call some string drawing BIOS-like routine
;ret
; 4 byte header
; | Address of First Opcode (2 bytes) | End of Binary (2 bytes) |