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

0 Members and 1 Guest are viewing this topic.

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
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."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline 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
    • View Profile
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.


Offline mapar007

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 550
  • Rating: +28/-5
  • The Great Mata Mata
    • View Profile
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 »

Offline 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
    • View Profile
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  8)
« 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.


Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2898
  • Rating: +467/-17
    • View Profile
    • TI-Boy CE
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

Offline tr1p1ea

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 647
  • Rating: +110/-0
    • View Profile
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."


Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55872
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
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)?

Offline 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.
    • View Profile
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). :)

Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55872
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
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.

Offline 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
    • View Profile
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.


Offline ralphdspam

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 841
  • Rating: +38/-1
  • My name is actually Matt.
    • View Profile
Re: Mistakes made in the ASM tutorials
« Reply #25 on: March 06, 2011, 03:49:29 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)
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.

Offline 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
    • View Profile
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.


Offline ralphdspam

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 841
  • Rating: +38/-1
  • My name is actually Matt.
    • View Profile
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

Offline 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
    • View Profile
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.