Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,12 @@
|
|||
.data ;data segment
|
||||
|
||||
TestValue_00 byte 0 ;an 8-bit variable
|
||||
TestValue_01 word 0 ;a 16-bit variable
|
||||
TestValue_02 dword 0 ;a 32-bit variable
|
||||
|
||||
.code
|
||||
|
||||
start:
|
||||
|
||||
mov dh, byte ptr [ds:TestValue_00] ;load the value stored at the address "TestValue_00"
|
||||
mov ax, word ptr [ds:TestValue_01] ;load the value stored at the address "TestValue_01"
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
mov al, byte ptr [ds:TestValue_02]
|
||||
;even though this was listed as a dword in the data segment, the assembler lets us do this!
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
foo byte 0,0,0,0
|
||||
bar word 0,0
|
||||
baz dword 0
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
Array1 byte 00,01,02,03
|
||||
|
||||
Array2 byte 00,01
|
||||
byte 02,03
|
||||
|
|
@ -0,0 +1 @@
|
|||
BigNumber byte 256 dup (0) ;reserve 256 bytes, each equals zero
|
||||
Loading…
Add table
Add a link
Reference in a new issue