-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest02.lst
23 lines (23 loc) · 1.31 KB
/
test02.lst
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
1 00000000 ; emulator test program
2 00000000
3 00000000 [INSTRSET "i486p"]
4 00000000 [BITS 32]
5 00000000
6 = 000A0000 VRAM EQU 0xa0000
7 = 00000140 SCRNX EQU 320
8 = 000000C8 SCRNY EQU 200
9 00000000
10 00000000
11 ORG 0x7c00
12 00007C00
13 00007C00 start:
14 00007C00 B8 000000A0 MOV EAX,0xa0
15 00007C05 BB 00000001 MOV EBX,0x01
16 00007C0A B9 000000C8 MOV ECX,SCRNY
17 00007C0F E8 00000007 CALL func
18 00007C14 EB EA JMP start
19 00007C16 E9 FFFF83E5 JMP 0
20 00007C1B func:
21 00007C1B C7 00 0000000F MOV DWORD [EAX],0x0f
22 00007C21 01 D8 ADD EAX,EBX
23 00007C23 C3 RET