ASM Program, Data Definitions

Having some trouble with my program, the problem states "write a program that contains a definition of each data type listed in Table 3.2 in Section 3.4. Initialize each variable to a value that is consistent with its data type."

This is from Assembly Language for x86 Processors 6th Edition

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
INCLUDE Irvine32.inc
.data

.code
main PROC

	valb BYTE 12h
	valsb SBYTE -12h
	valw WORD 1234h
	valsw SWORD -1234h
	valdw DWORD 12345678h
	valsdw SDWORD -12345678h
	valfw FWORD 123456781234h
	valqw QWORD 1234567812345678h
	valtb TBYTE 1000000000123456789Ah
	valr4 REAL4 -1.0
	valr8 REAL8 1.0E-260
	valr10 REAL10 1.0E+4000

	exit
main ENDP

END main
Topic archived. No new replies allowed.