1 ## add 1 and 1, and return the result in the exit code 2 # 3 # To run (from the subx directory): 4 # $ subx translate examples/ex2.subx -o examples/ex2 5 # $ subx run examples/ex2 6 # Expected result: 7 # $ echo $? 8 # 2 9 10 == code 11 12 bb/copy-to-EBX 1/imm32 13 43/inc-EBX 14 # exit(EBX) 15 b8/copy-to-EAX 1/imm32 16 cd/syscall 0x80/imm8 17 18 # vim:nowrap:textwidth=0