[SOLVED] CS This is a trivial example of assembling and testing a program. It should work for anyone logged in to rabbit. It shows every keypress, even down to thebeing used to show when I press ENTER. What I type is in bold, everything else came from the computer. This sample shows just entering a program, assembling it, and single-stepping through it. For anything else, see the proper documentation.

$25

File Name: CS_This_is_a_trivial_example_of_assembling_and_testing_a_program._It_should_work_for_anyone_logged_in_to_rabbit._It_shows_every_keypress,_even_down_to_thebeing_used_to_show_when_I_press_ENTER._What_I_type_is_in_bold,_everything_else_came_from_the_computer._This_sample_shows_just_entering_a_program,_assembling_it,_and_single-stepping_through_it._For_anything_else,_see_the_proper_documentation..zip
File Size: 3730.32 KB

5/5 - (1 vote)

This is a trivial example of assembling and testing a program. It should work for anyone logged in to rabbit. It shows every keypress, even down to thebeing used to show when I press ENTER. What I type is in bold, everything else came from the computer. This sample shows just entering a program, assembling it, and single-stepping through it. For anything else, see the proper documentation.
$ pico testprog.ass

.makeexe

load r1,1
inc r1
jump loop
$ assemble testprog $ emulator testprog
No system.setup in currecnt directory, reading /usr/local/bin/system.setup instead
disc 1 from file maindrive.disc, 6000 blocks
set SP to 0x80000000
loop: load
mul r1,r2
r2,34
set PC to 0x00000400
load file testprog.exe starting at 0x00000400 >
R0=0 R4 = 0
R1=0 R5 = 0
R2=0 R6 = 0
R3=0 R7 = 0
FLAGS = 0x00000031: R ~Z ~N ~ERR SYS IP ~VM
00000400: (02100001) LOAD
R0=0
R1=1
R2=0
R3=0
FLAGS = 0x00000031: R ~Z ~N ~ERR SYS IP ~VM
00000401: (02200022) LOAD
R0 = 0 R4=0
R1 = 1 R5=0
R2=34 R6=0
R3 = 0 R7=0
FLAGS = 0x00000031: R ~Z ~N ~ERR SYS IP ~VM
00000402: (10120000) MUL
R0 = 0 R4=0
R1=34 R5=0
R2=34 R6=0
R3 = 0 R7=0
FLAGS = 0x00000031: R ~Z ~N ~ERR SYS IP ~VM
R4=0 R5=0 R6=0 R7=0
R9=0 R10= 0 R11= 0
R1, 1
R2,34> R8=0
R1,R2> R8=0
R8=0 R9=0 R10= 0 R11= 0
R12= 0
SP = 0x80000000
FP = 0x00000000
PC = 0x00000400
R12= 0
SP = 0x80000000
FP = 0x00000000
PC = 0x00000401
R12= 0
SP = 0x80000000
FP = 0x00000000
PC = 0x00000402
R12= 0
SP = 0x80000000
FP = 0x00000000
PC = 0x00000403
> R8=0
R9=0 R10= 0 R11= 0
R9=0 R10= 0 R11= 0

00000403: (08010000) INC
R0 = 0 R4=0
R1 = 35 R5=0
R2 = 34 R6=0
R3 = 0 R7=0
FLAGS = 0x00000031: R ~Z ~N ~ERR SYS IP ~VM PC4 = 0x00000401 = 1025
R12= 0
SP = 0x80000000
FP = 0x00000000
PC = 0x00000404
R12= 0
SP = 0x80000000
FP = 0x00000000
PC = 0x00000401
R12= 0
SP = 0x80000000
FP = 0x00000000
PC = 0x00000402
R12= 0
SP = 0x80000000
FP = 0x00000000
PC = 0x00000403
R12= 0
SP = 0x80000000
FP = 0x00000000
PC = 0x00000404
R12= 0
SP = 0x80000000
FP = 0x00000000
PC = 0x00000401
R12= 0
SP = 0x80000000
FP = 0x00000000
PC = 0x00000402
00000404:
R0=0
R1=35
R2=34
R3 = 0
FLAGS = 0x00000031: R ~Z ~N ~ERR SYS IP ~VM
(320FFFFC) JUMP
00000401: (02200022) LOAD
R2, 34
> R8=0
00000402: (10120000) MUL
R1, R2
> R8=0
R4=0 R5=0 R6=0 R7=0
R9 =0 R10= 0 R11= 0
R0 = 0 R4=0
R1=35 R5=0
R2=34 R6=0
R3 = 0 R7=0
FLAGS = 0x00000031: R ~Z ~N ~ERR SYS IP ~VM
R0 = 0 R4=0
R1 = 1190 R5=0
R2 = 34 R6=0
R3 = 0 R7=0
FLAGS = 0x00000031: R ~Z ~N ~ERR SYS IP ~VM
00000403: (08010000) INC
R0 = 0 R4=0
R1 = 1191 R5=0
R2 = 34 R6=0
R3 = 0 R7=0
FLAGS = 0x00000031: R ~Z ~N ~ERR SYS IP ~VM PC4 = 0x00000401 = 1025
00000404: (320FFFFC) JUMP
R0=0 R4=0
R1 = 1191 R5=0
R2 = 34 R6=0
R3 = 0 R7=0
FLAGS = 0x00000031: R ~Z ~N ~ERR SYS IP ~VM
00000401: (02200022) LOAD
R2, 34
> R8=0
R0 = 0 R4=0
R1 = 1191 R5=0
R2 = 34 R6=0
R3 = 0 R7=0
FLAGS = 0x00000031: R ~Z ~N ~ERR SYS IP ~VM
R1 >
R8 = 0
PC4 > R8 =0
R1 >
R8 = 0
PC4 > R8 =0
R9 = 0
R10= 0
R11= 0
R9=0 R10= 0 R11= 0
R9=0 R10= 0 R11= 0
R9 = 0
R10= 0
R11= 0
R9 =0 R10= 0 R11= 0
R9=0 R10= 0 R11= 0

00000402: (10120000) MUL
R0 = 0 R4=0
R1 = 0x00009E2E R5=0
R2 = 34 R6=0
R3 = 0 R7=0
FLAGS = 0x00000031: R ~Z ~N ~ERR SYS IP ~VM
00000403: (08010000) INC
R0 = 0 R4=0
R1 = 0x00009E2F R5=0
R2 = 34 R6=0
R3 = 0 R7=0
FLAGS = 0x00000031: R ~Z ~N ~ERR SYS IP ~VM PC4 = 0x00000401 = 1025
R12= 0
SP = 0x80000000
FP = 0x00000000
PC = 0x00000403
R12= 0
SP = 0x80000000
FP = 0x00000000
PC = 0x00000404
R12= 0
SP = 0x80000000
FP = 0x00000000
PC = 0x00000401
00000404: (320FFFFC)
JUMP PC4 > R4=0 R8 =0
R5=0 R9 =0 R6=0 R10= 0 R7=0 R11= 0
R0=0
R1 = 0x00009E2F
R2 = 34
R3 = 0
FLAGS = 0x00000031: R ~Z ~N ~ERR SYS IP ~VM
00000401: (02200022) LOAD R2, 34 > [controlc] > [controlc]
> [controlc]
$ ls l testprog*
rwrr1 sratbagclass81 Sep 21 17:34 testprog.ass
rwrr1 sratbagclass20 Sep 21 17:34 testprog.exe
$
R1,R2> R8=0
R1> R8=0
R9=0 R10= 0 R11= 0
R9=0 R10= 0 R11= 0

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] CS This is a trivial example of assembling and testing a program. It should work for anyone logged in to rabbit. It shows every keypress, even down to thebeing used to show when I press ENTER. What I type is in bold, everything else came from the computer. This sample shows just entering a program, assembling it, and single-stepping through it. For anything else, see the proper documentation.
$25