118
« on: November 09, 2010, 07:03:10 pm »
here it is
#include "ti83plus.inc"
.org 40339
.db t2ByteTok, tAsmCmp
Truck .equ 0
Car .equ 1
Motorcycle .equ 2
Slow_Speed .equ 0
Medium_Speed .equ 1
Fast_Speed .equ 2
Small_Size .equ 0
Medium_Size .equ 1
Big_Size .equ 2
White .equ 0
Light_Grey .equ 1
Dark_Grey .equ 2
Black .equ 3
-----------------------------------------------------------------------
Player1:
.db White,Light_Grey, Truck, Small_Size, Slow_Speed
Player2:
.db Black, Dark_Grey, Car, Medium_Size, Fast_Speed
Player3:
.db Light_Grey, Dark_Grey, Motorcycle, Large_Size, Slow_Speed
Player4:
.db Black, White, Motorcycle, Small_Size, Medium_Speed
-----------------------------------------------------------------------
cp 1
jr z, Load_Player1_Data
cp 2
jr z, Load_Player2_Data
cp 3
jr z, Load_Player3_Data
cp 4
jr z, Load_Player4_Data
Load_Player1_Data:
ld a, (Player1)
ld b, a
ld a, (Player1+1)
ld c, a
ld a, (Player1+2)
ld d, a
ld a, (Player1+3)
ld e, a
ld a, (Player1+4)
ret
Load_Player2_Data:
ld a, (Player2)
ld b, a
ld a, (Player2+1
ld c, a
ld a, (Player2+2)
ld d, a
ld a, (Player2+3)
ld e, a
ld a, (Player2+4)
ret
Load_Player3_Data
ld a, (Player3)
ld b, a
ld a, (Player3+1)
ld c, a
ld a, (Player3+2)
ld d, a
ld a, (Player3+3)
ld e, a
ld a, (Player3+4)
ret
Load_Player4_Data
ld a, (Player4)
ld b, a
ld a, (Player4+1)
ld c, a
ld a, (Player4+2)
ld d, a
ld a, (Player4+3)
ld e, a
ld a, (Player4+4)
ret
Player1:
.db White, Light_Grey, Truck, Small_Size, Slow_Speed
Player2:
.db Black, Dark_Grey, Car, Medium_Size, Fast_Speed
Player3:
.db Light_Grey, Dark_Grey, Motorcycle, Large_Size, Slow+_Speed
Player4:
.db Black, White, Motorcycle, Small_Size, Medium_Speed