Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
22 May, 2013, 02:50:20 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: 1 ... 17 18 [19] 20 21   Go Down
  Print  
Author Topic: Hot Dog's TI-83+ Z80 ASM for the Absolute Beginner--Discussion -  (Read 20202 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
adamac16
LV4 Regular (Next: 200)
****
Offline Offline

Gender: Male
Last Login: 30 June, 2011, 06:44:43
Date Registered: 06 November, 2010, 01:03:05
Location: Chesnee, SC
Posts: 141


Total Post Ratings: +2

View Profile
« Reply #270 on: 10 November, 2010, 01:46:45 »
0

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

Hot_Dog
If you can't find a cat, look for its tail.
Project Author
LV11 Super Veteran (Next: 3000)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 21:08:05
Date Registered: 28 December, 2009, 18:47:54
Location: Midland, Washington
Posts: 2940


Topic starter
Total Post Ratings: +428

View Profile
« Reply #271 on: 10 November, 2010, 01:51:10 »
0

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

Exactly.  The .org 40339 or .org $9D93 means "begin a new program."  Otherwise, continue the program from the last page.  So the red boxes from pages 6 to 8 are one big program.
Logged

There are people who can speak two languages, and they are called bilingual.  There are people who speak three languages and are therefore trilingual.  Then there are people who speak one language, and these people are called Americans.

adamac16
LV4 Regular (Next: 200)
****
Offline Offline

Gender: Male
Last Login: 30 June, 2011, 06:44:43
Date Registered: 06 November, 2010, 01:03:05
Location: Chesnee, SC
Posts: 141


Total Post Ratings: +2

View Profile
« Reply #272 on: 10 November, 2010, 01:53:54 »
0

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

adamac16
LV4 Regular (Next: 200)
****
Offline Offline

Gender: Male
Last Login: 30 June, 2011, 06:44:43
Date Registered: 06 November, 2010, 01:03:05
Location: Chesnee, SC
Posts: 141


Total Post Ratings: +2

View Profile
« Reply #273 on: 10 November, 2010, 02:03:10 »
0

here it is


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
#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
« Last Edit: 10 November, 2010, 02:14:05 by Hot_Dog » Logged

Hot_Dog
If you can't find a cat, look for its tail.
Project Author
LV11 Super Veteran (Next: 3000)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 21:08:05
Date Registered: 28 December, 2009, 18:47:54
Location: Midland, Washington
Posts: 2940


Topic starter
Total Post Ratings: +428

View Profile
« Reply #274 on: 10 November, 2010, 02:15:44 »
0

Start off by changine Big_Size .equ 2 to Large_Size .equ 2.  That was a typo.

Then put parenthesis at the end of ld a, (Player2+1

Finally, look at the code box in your post and remove the lines I put between rows of dashes, such as ---------------------------------------------------
« Last Edit: 10 November, 2010, 02:15:54 by Hot_Dog » Logged

There are people who can speak two languages, and they are called bilingual.  There are people who speak three languages and are therefore trilingual.  Then there are people who speak one language, and these people are called Americans.

adamac16
LV4 Regular (Next: 200)
****
Offline Offline

Gender: Male
Last Login: 30 June, 2011, 06:44:43
Date Registered: 06 November, 2010, 01:03:05
Location: Chesnee, SC
Posts: 141


Total Post Ratings: +2

View Profile
« Reply #275 on: 10 November, 2010, 02:17:48 »
0

i didnt put in those dashes
Logged

Hot_Dog
If you can't find a cat, look for its tail.
Project Author
LV11 Super Veteran (Next: 3000)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 21:08:05
Date Registered: 28 December, 2009, 18:47:54
Location: Midland, Washington
Posts: 2940


Topic starter
Total Post Ratings: +428

View Profile
« Reply #276 on: 10 November, 2010, 02:18:45 »
0

i didnt put in those dashes

I know.  I did to make the lines easy to find
Logged

There are people who can speak two languages, and they are called bilingual.  There are people who speak three languages and are therefore trilingual.  Then there are people who speak one language, and these people are called Americans.

adamac16
LV4 Regular (Next: 200)
****
Offline Offline

Gender: Male
Last Login: 30 June, 2011, 06:44:43
Date Registered: 06 November, 2010, 01:03:05
Location: Chesnee, SC
Posts: 141


Total Post Ratings: +2

View Profile
« Reply #277 on: 10 November, 2010, 02:21:04 »
0

oh
Logged

adamac16
LV4 Regular (Next: 200)
****
Offline Offline

Gender: Male
Last Login: 30 June, 2011, 06:44:43
Date Registered: 06 November, 2010, 01:03:05
Location: Chesnee, SC
Posts: 141


Total Post Ratings: +2

View Profile
« Reply #278 on: 10 November, 2010, 02:24:40 »
0

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

Hot_Dog
If you can't find a cat, look for its tail.
Project Author
LV11 Super Veteran (Next: 3000)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 21:08:05
Date Registered: 28 December, 2009, 18:47:54
Location: Midland, Washington
Posts: 2940


Topic starter
Total Post Ratings: +428

View Profile
« Reply #279 on: 10 November, 2010, 02:26:35 »
0

Well, it's actually not something you're supposed to run, so it doesn't matter.  I forgot to say that it's just hypothetical.

Try not to double post in the future
Logged

There are people who can speak two languages, and they are called bilingual.  There are people who speak three languages and are therefore trilingual.  Then there are people who speak one language, and these people are called Americans.

adamac16
LV4 Regular (Next: 200)
****
Offline Offline

Gender: Male
Last Login: 30 June, 2011, 06:44:43
Date Registered: 06 November, 2010, 01:03:05
Location: Chesnee, SC
Posts: 141


Total Post Ratings: +2

View Profile
« Reply #280 on: 10 November, 2010, 02:28:26 »
0

ok

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

Hot_Dog
If you can't find a cat, look for its tail.
Project Author
LV11 Super Veteran (Next: 3000)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 21:08:05
Date Registered: 28 December, 2009, 18:47:54
Location: Midland, Washington
Posts: 2940


Topic starter
Total Post Ratings: +428

View Profile
« Reply #281 on: 10 November, 2010, 02:31:17 »
0

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

As a rule of thumb, if you see a space, you can do as many as 1 space or as many as 20 spaces.  The number of spaces doesn't matter.

However, if there's no space, don't put in a space.

Here's two examples:

No space before Load_Player3_Data

For call Load_Player_Data, you could type in  call                Load_Player_data
Logged

There are people who can speak two languages, and they are called bilingual.  There are people who speak three languages and are therefore trilingual.  Then there are people who speak one language, and these people are called Americans.

adamac16
LV4 Regular (Next: 200)
****
Offline Offline

Gender: Male
Last Login: 30 June, 2011, 06:44:43
Date Registered: 06 November, 2010, 01:03:05
Location: Chesnee, SC
Posts: 141


Total Post Ratings: +2

View Profile
« Reply #282 on: 10 November, 2010, 02:33:54 »
0

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

coolsnake
LV2 Member (Next: 40)
**
Offline Offline

Last Login: 09 November, 2011, 20:28:48
Date Registered: 27 August, 2010, 18:41:29
Posts: 36

Total Post Ratings: +2

View Profile
« Reply #283 on: 14 November, 2010, 20:38:53 »
0

I have a question about page 10 from lesson 7.

If you check that A <= 90 shouldn't the ASM equivalent be CP 91 instead of CP 89?
Since you check for the C flag condition, if A were 90 or 89 it wouldn't be set.
Logged

Unpretty Integrals
This program gives you a graphical representation of the "fnint(" function, which allows you to calculate definite integrals. It is extremely similar to the functionality MathPrint provides, minus the extreme bloat that slows your calculator down to a crawl.
calcdude84se
Needs Motivation
Members
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 14 May, 2013, 16:12:14
Date Registered: 21 April, 2010, 04:20:59
Posts: 2207


Total Post Ratings: +62

View Profile
« Reply #284 on: 14 November, 2010, 20:56:48 »
0

Assuming coolsnake's account of the tutorials are accurate, then it should indeed be "cp 91", like he said.
Logged

"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Bug me about PartesOS. I might just need reminding.
Pages: 1 ... 17 18 [19] 20 21   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.301 seconds with 32 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.