Skip to content

Commit

Permalink
Initial check-in of debugger tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJohnson committed Apr 23, 2001
1 parent d27c7cd commit 5e3e3c5
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/.cvsignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.exe
*.sw*
12 changes: 12 additions & 0 deletions tests/test01.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
; Test01: simplest possible program

BITS 32

SECTION .text

GLOBAL _main
_main
xor eax, eax
ret


31 changes: 31 additions & 0 deletions tests/test02.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
; Test02: add some data variables and accesses

BITS 32

SECTION .data

_var1 db 1
_var2 dw 2
_var3 dd 4

SECTION .bss

_bss1 resb 3
_bss2 resw 2
_bss3 resd 1

SECTION .text

GLOBAL _main
_main
movzx ebx, byte [_var1]
mov ecx, _var2
mov [_var3], ecx

movsx edx, byte [_bss1]
mov eax, _bss2
mov [_bss3], eax

xor eax, eax
ret

0 comments on commit 5e3e3c5

Please sign in to comment.