additional fixes
This commit is contained in:
+11
-9
@@ -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
|
section .text
|
||||||
global main
|
global main
|
||||||
|
|
||||||
main:
|
main:
|
||||||
|
; keyboard current input (16-bit)
|
||||||
|
|
||||||
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)
|
|
||||||
+3
-3
@@ -1,12 +1,12 @@
|
|||||||
.model small
|
.model small
|
||||||
|
|
||||||
section
|
|
||||||
global main
|
|
||||||
|
|
||||||
section .data
|
section .data
|
||||||
a db 8
|
a db 8
|
||||||
b db 3
|
b db 3
|
||||||
|
|
||||||
|
section .text
|
||||||
|
global main
|
||||||
|
|
||||||
main:
|
main:
|
||||||
; initialization
|
; initialization
|
||||||
mov ax, @data
|
mov ax, @data
|
||||||
|
|||||||
+5
-6
@@ -1,8 +1,4 @@
|
|||||||
section.text
|
.model small
|
||||||
global main
|
|
||||||
|
|
||||||
main:
|
|
||||||
|
|
||||||
|
|
||||||
section.data
|
section.data
|
||||||
; allocating n.8 16-bit registers
|
; allocating n.8 16-bit registers
|
||||||
@@ -22,4 +18,7 @@ section.data
|
|||||||
dw THIS 3
|
dw THIS 3
|
||||||
dw THAT 4
|
dw THAT 4
|
||||||
|
|
||||||
; section.bss
|
section.text
|
||||||
|
global main
|
||||||
|
|
||||||
|
main:
|
||||||
|
|||||||
Reference in New Issue
Block a user