### Author Topic: Mistakes made in the ASM tutorials  (Read 20277 times)

0 Members and 1 Guest are viewing this topic.

#### calcdude84se

• Needs Motivation
• LV11 Super Veteran (Next: 3000)
• Posts: 2272
• Rating: +78/-13
• Wondering where their free time went...
##### Re: Mistakes made in the ASM tutorials
« Reply #15 on: May 16, 2010, 08:04:22 am »
I doubt it... The OS architecture has remained essentially the same throughout its versions.
The only possibly new bcalls (which may not be in any standard include file, not to mention the 84+ series is over a year old anyway) are 84+(SE) specific ones, which wouldn't be covered by Hot_Dog's tutorial for a long time.
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
I'll put it online when it does something.

#### Hot_Dog

• If you can't find a cat, look for its tail.
• Project Author
• LV11 Super Veteran (Next: 3000)
• Posts: 2966
• Rating: +445/-10
##### Re: Mistakes made in the ASM tutorials
« Reply #16 on: June 23, 2010, 02:14:20 pm »
In lesson 9, on page 12, I had the following text in bold:

Whenever you see a function that has a parameter
of a one-byte value, you can also use (HL) inside that parameter.

That was a mistake.  Instead of "one-byte value", it should be "one-byte register."
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.

#### mapar007

• LV7 Elite (Next: 700)
• Posts: 550
• Rating: +28/-5
• The Great Mata Mata
##### Re: Mistakes made in the ASM tutorials
« Reply #17 on: June 25, 2010, 05:41:16 am »
I think you should say somewhere that IX and HL are always mutually exclusive. There is no instruction that can take HL and IX as its arguments.  (so you can't do add hl,ix)
« Last Edit: June 25, 2010, 05:41:37 am by mapar007 »

#### Hot_Dog

• If you can't find a cat, look for its tail.
• Project Author
• LV11 Super Veteran (Next: 3000)
• Posts: 2966
• Rating: +445/-10
##### Re: Mistakes made in the ASM tutorials
« Reply #18 on: June 25, 2010, 10:43:28 am »
I think you should say somewhere that IX and HL are always mutually exclusive. There is no instruction that can take HL and IX as its arguments.  (so you can't do add hl,ix)

Certainly, although so far, I haven't told the reader what IX is
« Last Edit: June 25, 2010, 11:17:36 am by Hot_Dog »
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.

#### calc84maniac

• eZ80 Guru
• Coder Of Tomorrow
• LV11 Super Veteran (Next: 3000)
• Posts: 2898
• Rating: +467/-17
##### Re: Mistakes made in the ASM tutorials
« Reply #19 on: June 25, 2010, 11:06:50 am »
I think you should say somewhere that IX and HL are always mutually exclusive. There is no instruction that can take HL and IX as its arguments.  (so you can't do add hl,ix)
Well, actually, the major exception (which I didn't realize for quite a while) was that the "ld h,(ix+n)", "ld l,(ix+n)", "ld (ix+n),h" and "ld (ix+n),l" instructions are actually quite valid.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

#### tr1p1ea

• LV7 Elite (Next: 700)
• Posts: 647
• Rating: +110/-0
##### Re: Mistakes made in the ASM tutorials
« Reply #20 on: June 25, 2010, 12:25:33 pm »
Along with operations on ixl/ixh & iyl/iyh.
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."

#### DJ Omnimaga

• Former TI programmer
• CoT Emeritus
• LV15 Omnimagician (Next: --)
• Posts: 55872
• Rating: +3151/-232
• CodeWalrus founder & retired Omnimaga founder
##### Re: Mistakes made in the ASM tutorials
« Reply #21 on: June 25, 2010, 05:37:52 pm »
By the way, I haven't got time to check the tutorials yet, but are you planning to have a section specifically for stuff that is not compatible with the TI-Nspire, discouraging their usage unless absolutely needed (for speed, for example)?

#### ztrumpet

• The Rarely Active One
• CoT Emeritus
• LV13 Extreme Addict (Next: 9001)
• Posts: 5712
• Rating: +364/-4
• If you see this, send me a PM. Just for fun.
##### Re: Mistakes made in the ASM tutorials
« Reply #22 on: June 25, 2010, 05:40:35 pm »
By the way, I haven't got time to check the tutorials yet, but are you planning to have a section specifically for stuff that is not compatible with the TI-Nspire, discouraging their usage unless absolutely needed (for speed, for example)?
Actually I don't think he's going to describe undocumented instructions (unless they are in an appendix).
If I'm wrong, please correct me!
Unfinished Projects:
 Elmgon 14% Basic Movement Demo Homescreen Game Pack 80% Basic Latest Release Cube Droid Saves the Galaxy 65% Axe Demo Detonate 70% Axe
Completed Projects:
Exodus | Midnight |Drifter | Axe Snake | Jump! | Factory Theta | Spider | Plot Drop | Papi Jump | Numb3rs | Nibbler | Boost | Duel Tile Map Editor | Homescreen Map Editor | Key Group Check | Oasis

#### DJ Omnimaga

• Former TI programmer
• CoT Emeritus
• LV15 Omnimagician (Next: --)
• Posts: 55872
• Rating: +3151/-232
• CodeWalrus founder & retired Omnimaga founder
##### Re: Mistakes made in the ASM tutorials
« Reply #23 on: June 25, 2010, 05:42:22 pm »
Aaah ok. Well, if he ever do any doc on them, he should probably warn that those will not work on the Nspire.

#### Hot_Dog

• If you can't find a cat, look for its tail.
• Project Author
• LV11 Super Veteran (Next: 3000)
• Posts: 2966
• Rating: +445/-10
##### Re: Mistakes made in the ASM tutorials
« Reply #24 on: June 25, 2010, 07:09:24 pm »
Aaah ok. Well, if he ever do any doc on them, he should probably warn that those will not work on the Nspire.

I think I'll put them in an appendix.  Thanks, btw, I'll be sure to warn about Nspire compatability.
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.

#### ralphdspam

• Posts: 841
• Rating: +38/-1
• My name is actually Matt.
##### Re: Mistakes made in the ASM tutorials
« Reply #25 on: March 06, 2011, 03:49:29 pm »
Quote from: Lesson 6 Page 9
Should be:
Code: [Select]
Names_Menu_Items .equ Players_Menu_Items
(I think)
ld a, 0
ld a, a

#### souvik1997

• Guest
##### Re: Mistakes made in the ASM tutorials
« Reply #26 on: March 06, 2011, 03:55:29 pm »
Also, .org 40339 should be changed to .org $9D93, because RAM addresses are generally expressed in hexadecimal. #### Hot_Dog • If you can't find a cat, look for its tail. • Project Author • LV11 Super Veteran (Next: 3000) • Posts: 2966 • Rating: +445/-10 ##### Re: Mistakes made in the ASM tutorials « Reply #27 on: March 06, 2011, 04:14:18 pm » Quote from: Lesson 6 Page 9 Main_Menu .equ 0 Settings_Menu .equ1 Players_Menu .equ 2 Names_Menu .equ 3 Main_Menu_Items .equ 4 Settings_Menu_Items .equ 3 Players_Menu_Items .equ Settings_Menu_Items Names_Menu_Items .equ Player_Menu_Items Should be: Code: [Select] Names_Menu_Items .equ Players_Menu_Items (I think) Yeah, I think you're right 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. #### ralphdspam • LV8 Addict (Next: 1000) • Posts: 841 • Rating: +38/-1 • My name is actually Matt. ##### Re: Mistakes made in the ASM tutorials « Reply #28 on: March 06, 2011, 05:22:17 pm » Also, .org 40339 should be changed to .org$9D93, because RAM addresses are generally expressed in hexadecimal.
... You might want to see this
http://ourl.ca/9514
« Last Edit: March 06, 2011, 05:24:39 pm by ralphdspam »
ld a, 0
ld a, a

#### Hot_Dog

• If you can't find a cat, look for its tail.
• Project Author
• LV11 Super Veteran (Next: 3000)
• Posts: 2966
• Rating: +445/-10
##### Re: Mistakes made in the ASM tutorials
« Reply #29 on: March 06, 2011, 05:24:41 pm »
Also, .org 40339 should be changed to .org \$9D93, because RAM addresses are generally expressed in hexadecimal.
Um... you might want to see this
http://ourl.ca/9514

Don't worry about it Ralphdspam.  The topic wasn't up at that time.
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.