Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - adamac16

Pages: 1 ... 6 7 [8] 9 10
106
ASM / Re: ASM practice (Help)
« on: November 11, 2010, 05:42:07 pm »
Start by displaying the text "Press a number", and using GetKey() to let the user press a key.

Quote
Wouldn't you'd just get the keypress, then have the program run through a look up table and return the value from the table?

That's too hard for beginners
so do i do that for every number? or just once?

107
ASM / Re: ASM practice (Help)
« on: November 11, 2010, 05:25:54 pm »
woah woah wait what?
im mixed up here.
i was talking about kerm, not Hot_Dog

108
ASM / Re: ASM practice (Help)
« on: November 11, 2010, 05:23:29 pm »
he probably thought that the lessons i read covered that or something. What do yall suggest i do?

109
ASM / Re: ASM practice (Help)
« on: November 11, 2010, 05:18:15 pm »
well Kerm said it was for beginners. idk

110
ASM / Re: ASM practice (Help)
« on: November 11, 2010, 05:06:40 pm »
its going to ask the user to press a number key, 1 through 9, then displays the number that they chose

111
ASM / Re: ASM practice (Help)
« on: November 11, 2010, 05:00:19 pm »
ive already got something in mind, but i dont know how to start it oncalc

112
ASM / ASM practice (Help)
« on: November 11, 2010, 05:43:49 am »
Im not sure this goes here, correct me if i chose the wrong place.

But I have finished Hot_Dog's tutorials and i think i am ready for Learn TI-83+ ASM in 28 days. But before i do that, i want to make a simple practice program. The thing is, I don't know where to start. Or how to begin.

113
kk. ill post any other questions i have with the tutorials when need be.

114
ok

so what about the others before and after the perfect world?

115
ok. now when there is a pause in the program (the perfect world), how many spaces should i put in it, 2 or 4?

117
i didnt put in those dashes

118
here it is

Code: [Select]
#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

119
gotcha. now i can continue the lesson. BTW: i tried to compile it, but it said something like "over 225" or something like that. ?

120
so... unless it says .org 40339 or .org $9D93, you continue on where you left off?

Pages: 1 ... 6 7 [8] 9 10