From d2026fa73bbfe76f8ca21b032aa0f02dd2c46a8a Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Tue, 3 Jul 2018 15:06:53 -0700 Subject: 4309 Simplify a couple of test programs. --- subx/teensy/test4 | Bin 368 -> 368 bytes subx/teensy/test4.s | 2 +- subx/teensy/test5 | Bin 99 -> 96 bytes subx/teensy/test5.s | 6 +----- 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/subx/teensy/test4 b/subx/teensy/test4 index 90e2f7a9..50be075e 100755 Binary files a/subx/teensy/test4 and b/subx/teensy/test4 differ diff --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 Binary files a/subx/teensy/test5 and b/subx/teensy/test5 differ diff --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 $ - $$ -- cgit 1.4.1-2-gfad0