about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-07-03 15:06:53 -0700
committerKartik Agaram <vc@akkartik.com>2018-07-03 15:06:53 -0700
commitd2026fa73bbfe76f8ca21b032aa0f02dd2c46a8a (patch)
treeac4e03eb952e2a2fccb12bb7b142abf7f041e303
parent0defd18cfc5fd3e9190ceb067b859294c5b2677c (diff)
downloadmu-d2026fa73bbfe76f8ca21b032aa0f02dd2c46a8a.tar.gz
4309
Simplify a couple of test programs.
-rwxr-xr-xsubx/teensy/test4bin368 -> 368 bytes
-rw-r--r--subx/teensy/test4.s2
-rwxr-xr-xsubx/teensy/test5bin99 -> 96 bytes
-rw-r--r--subx/teensy/test5.s6
4 files changed, 2 insertions, 6 deletions
diff --git a/subx/teensy/test4 b/subx/teensy/test4
index 90e2f7a9..50be075e 100755
--- a/subx/teensy/test4
+++ b/subx/teensy/test4
Binary files differdiff --git a/subx/teensy/test4.s b/subx/teensy/test4.s
index c8866dfa..3d7f7f62 100644
--- a/subx/teensy/test4.s
+++ b/subx/teensy/test4.s
@@ -5,6 +5,6 @@ BITS 32
 GLOBAL _start
 SECTION .text
 _start:
+  mov ebx, 42
   mov eax, 1
-  mov ebx, 42  
   int 0x80
diff --git a/subx/teensy/test5 b/subx/teensy/test5
index a67a5299..4d2da664 100755
--- a/subx/teensy/test5
+++ b/subx/teensy/test5
Binary files differdiff --git a/subx/teensy/test5.s b/subx/teensy/test5.s
index 54a79846..d549306b 100644
--- a/subx/teensy/test5.s
+++ b/subx/teensy/test5.s
@@ -36,11 +36,7 @@ phdrsize  equ  $ - phdr
 
 _start:
   mov ebx, 42
-  xor eax, eax
-  ; add eax, 0x00000001
-    db 0x81  ; op
-    db 0xc0  ; modr/m
-    dd 0x00000001  ; imm32 operand
+  mov eax, 1
   int 0x80
 
 filesize      equ     $ - $$