diff --git a/asm/io.asm b/asm/io.asm index e5bf961..a6d2166 100644 --- a/asm/io.asm +++ b/asm/io.asm @@ -1,13 +1,15 @@ +.model small + +section .data + dt screenMem 16383 ; screen memory address + dt screenLen 8192 ; screen memory length + dt kbdMem 24575 ; keyboard memory address + +section .bss + dt kbdIn ; keyboard input value + section .text global main main: - - -section .data - dt screenMem 16384 ; screen memory address - dt screenLen 8192 ; screen memory length - dt kbdMem 24576 ; keyboard memory address - -section .bss - dt kbdIn ; keyboard current input (16-bit) \ No newline at end of file + ; keyboard current input (16-bit) \ No newline at end of file diff --git a/asm/mult.asm b/asm/mult.asm index 1776c0d..afd46a0 100644 --- a/asm/mult.asm +++ b/asm/mult.asm @@ -1,12 +1,12 @@ .model small -section - global main - section .data a db 8 b db 3 +section .text + global main + main: ; initialization mov ax, @data diff --git a/asm/registers.asm b/asm/registers.asm index 0e61e32..48c3be5 100644 --- a/asm/registers.asm +++ b/asm/registers.asm @@ -1,8 +1,4 @@ -section.text - global main - -main: - +.model small section.data ; allocating n.8 16-bit registers @@ -22,4 +18,7 @@ section.data dw THIS 3 dw THAT 4 -; section.bss \ No newline at end of file +section.text + global main + +main: