diff --git a/asm/io.asm b/asm/io.asm new file mode 100644 index 0000000..637c245 --- /dev/null +++ b/asm/io.asm @@ -0,0 +1,9 @@ +segment .text + global main + +main: + + +segment .data + dt screen 16384 ; 16-bit screen memory allocation + dt kbd 24576 ; 16-bit keyboard memory allocation \ No newline at end of file diff --git a/asm/mult.asm b/asm/mult.asm new file mode 100644 index 0000000..8fd38c7 --- /dev/null +++ b/asm/mult.asm @@ -0,0 +1,8 @@ +segment .text + global main + +main: + + +segment .data +var \ No newline at end of file diff --git a/asm/registers.asm b/asm/registers.asm new file mode 100644 index 0000000..0e61e32 --- /dev/null +++ b/asm/registers.asm @@ -0,0 +1,25 @@ +section.text + global main + +main: + + +section.data + ; allocating n.8 16-bit registers + dw R0 0 + dw R1 1 + dw R2 2 + dw R3 3 + dw R4 4 + dw R5 5 + dw R6 6 + dw R7 7 + + ; allocating special registers for high-level usage + dw SP 0 + dw LCL 1 + dw ARG 2 + dw THIS 3 + dw THAT 4 + +; section.bss \ No newline at end of file