Created a basic binary format to help guide the disassembler.

This commit is contained in:
2022-08-29 15:57:14 +00:00
parent 0d3f8a460e
commit 7385a807a5
3 changed files with 65 additions and 20 deletions
+5 -3
View File
@@ -1,7 +1,7 @@
;.org 0x100
;.db msg "Hello, world!", 0
.db msg "Hello, world!", 0
;.db more_stuff "AA", 0
copy r7, 45 ; //
copy r7, msg ; //
cmp r8, 45 ;1000 1111
add r4, 30
sub r1, 69
@@ -17,4 +17,6 @@ jz 45
;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
;ret
; 4 byte header
; | Address of First Opcode (2 bytes) | End of Binary (2 bytes) |