(SRCTools Version 3.1.1) HexLoc DecLoc MachWord Label Instruction Comment ; ; CPE 221 Assembly Example ; ; This program calculates a tax rate based on the value of income as ; follows. ; if (income < level1) ; tax = 0; ; else ; if (income < level2) ; tax = 5; ; else ; tax = 10; ; .org 200 000000c8 0000000200 000061a8 income: .dc 25000 000000cc 0000000204 00003a98 level1: .dc 15000 000000d0 0000000208 000061a8 level2: .dc 25000 000000d4 0000000212 tax: .dw 1 orig: .org 1000 000003e8 0000001000 2fc00420 la r31, done 000003ec 0000001004 2f80041c la r30, five 000003f0 0000001008 298000d4 la r6, tax 000003f4 0000001012 09c000c8 ld r7, income 000003f8 0000001016 0a0000cc ld r8, level1 000003fc 0000001020 0a4000d0 ld r9, level2 00000400 0000001024 2a800000 la r10, 0 00000404 0000001028 72ce8000 sub r11, r7, r8 00000408 0000001032 403eb005 brmi r31, r11 0000040c 0000001036 72ce9000 sub r11, r7, r9 00000410 0000001040 403cb005 brmi r30, r11 00000414 0000001044 2a80000a la r10, 10 00000418 0000001048 403e0001 br r31 0000041c 0000001052 2a800005 five: la r10, 5 00000420 0000001056 1a8c0000 done: st r10, 0(r6) 00000424 0000001060 f8000000 stop --- Symbol Table --- done: 1056 five: 1052 tax: 212 level2: 208 level1: 204 income: 200 orig: 1000