Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
20 June, 2013, 10:38:19 *
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 2 [3] 4   Go Down
  Print  
Author Topic: Mistakes made in the ASM tutorials -  (Read 5831 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
ralphdspam
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: 14 May, 2013, 09:10:11
Date Registered: 01 February, 2011, 07:58:40
Location: California, USA
Posts: 841


Total Post Ratings: +36

View Profile
« Reply #30 on: 07 March, 2011, 02:35:05 »
0

Quote from: Lesson 7 Page 11
T-States: Byte Storage:
JR—12 if condition is true 2 Bytes
7 if condition is true 2 Bytes
JP – 10 no matter what
Which is it 12 or 7 if the condition is true?
Which one is it if it is false?
« Last Edit: 21 March, 2011, 05:19:01 by ralphdspam » Logged

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)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 22:11:33
Date Registered: 28 December, 2009, 18:47:54
Location: Midland, Washington
Posts: 2943


Topic starter
Total Post Ratings: +432

View Profile
« Reply #31 on: 07 March, 2011, 05:01:55 »
0

Oops: 7 T-States if condition is false
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.

ralphdspam
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: 14 May, 2013, 09:10:11
Date Registered: 01 February, 2011, 07:58:40
Location: California, USA
Posts: 841


Total Post Ratings: +36

View Profile
« Reply #32 on: 09 March, 2011, 05:25:54 »
+1

Quote from: Lesson 8 Page 13
#include “ti83plus.inc”
.org 40339
.db t2ByteTok, tAsmCmp
B_CALL _ClrLCDFull
ld a, 1
cp 1 ; If A = 1
jr z, DisplayNumber1 ; A – 1 = 0. So, if A = 1, CP 1 will
; give A – 1 = 1 – 1 = 0, therefore the
; zero (Z) flag will be set
cp 2
ret z ; If A = 2, end the program
DisplayNumber1:
ld h, 0
ld l, a ; Remember that CP does not affect A. A still equals 1.
B_CALL _DispHL
B_CALL _getKey
B_CALL _ClrCLDFull
ret
I think should be B_CALL _ClrLCDFull
Logged

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)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 22:11:33
Date Registered: 28 December, 2009, 18:47:54
Location: Midland, Washington
Posts: 2943


Topic starter
Total Post Ratings: +432

View Profile
« Reply #33 on: 09 March, 2011, 05:37:20 »
0

Yeah, you're right, and that one's weird because I usually test my programs
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.

ralphdspam
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: 14 May, 2013, 09:10:11
Date Registered: 01 February, 2011, 07:58:40
Location: California, USA
Posts: 841


Total Post Ratings: +36

View Profile
« Reply #34 on: 09 March, 2011, 05:54:24 »
0

Quote from: Lesson 8 Page 14
cp 27 ; If A = 1
I don't think it is the equivalent of "If A = 1".
Logged

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)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 22:11:33
Date Registered: 28 December, 2009, 18:47:54
Location: Midland, Washington
Posts: 2943


Topic starter
Total Post Ratings: +432

View Profile
« Reply #35 on: 09 March, 2011, 06:51:30 »
0

Nope, it's not.  Keep em coming!
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.

ralphdspam
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: 14 May, 2013, 09:10:11
Date Registered: 01 February, 2011, 07:58:40
Location: California, USA
Posts: 841


Total Post Ratings: +36

View Profile
« Reply #36 on: 12 March, 2011, 07:25:08 »
0

Quote from: Lesson 8 Page 14
Load_Player_Data:
ld b, (hl) ; In a perfect world, h contains the ram address to load from
inc h
ld c, (hl)
inc hl
ld d, (hl)
inc hl
ld e, (hl)
inc hl
ld a, (hl)
ret
Did you mean "inc hl"?

This too:
Quote from: Lesson 8 Page 16
Text:
.db “Hello World”, “This is my string,” 224, 65, 67, 67, 65, etc.

This one is really knit picky. Tongue
« Last Edit: 21 March, 2011, 05:22:22 by ralphdspam » Logged

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)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 22:11:33
Date Registered: 28 December, 2009, 18:47:54
Location: Midland, Washington
Posts: 2943


Topic starter
Total Post Ratings: +432

View Profile
« Reply #37 on: 12 March, 2011, 07:38:24 »
0

I don't know what is wrong with the second one, but definitely inc hl instead of inc h.
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.

ralphdspam
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: 14 May, 2013, 09:10:11
Date Registered: 01 February, 2011, 07:58:40
Location: California, USA
Posts: 841


Total Post Ratings: +36

View Profile
« Reply #38 on: 12 March, 2011, 07:41:29 »
0

For the second one, I thought it should be
.db "Hello World", "This is my string", 224, 65, 67, 67, 65, etc.

In the lesson, it was:
Quote
.db "Hello World", "This is my string," 224, 65, 67, 67, 65, etc.

I don't know. I am supposed to be the one learning. Tongue
« Last Edit: 12 March, 2011, 07:42:24 by ralphdspam » Logged

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)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 22:11:33
Date Registered: 28 December, 2009, 18:47:54
Location: Midland, Washington
Posts: 2943


Topic starter
Total Post Ratings: +432

View Profile
« Reply #39 on: 12 March, 2011, 07:52:46 »
0

Oh, well you're correct there, the comma should be outside
« Last Edit: 12 March, 2011, 07:53:00 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.

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 22:11:33
Date Registered: 28 December, 2009, 18:47:54
Location: Midland, Washington
Posts: 2943


Topic starter
Total Post Ratings: +432

View Profile
« Reply #40 on: 12 March, 2011, 08:04:35 »
+2

Sorry for the double post, but I've got to say this: thanks for catching the errors, ralphdspam, I like it for two reasons:

1. Readers will not have so many errors
2. It shows that you are understanding asm from reading these tutorials, which is what I was aiming for
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.

ralphdspam
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: 14 May, 2013, 09:10:11
Date Registered: 01 February, 2011, 07:58:40
Location: California, USA
Posts: 841


Total Post Ratings: +36

View Profile
« Reply #41 on: 16 March, 2011, 05:13:31 »
0

Quote from: Lesson 11 Page 3
B_CALL _VPutSN
Displays a string specified by HL. The string does not end in a
zero. Instead, the number of characters to display is stored in
register B.
Examples: LD HL, String
LD B, 11
B_CALL PutS
String:
.db “Hello World”

Is that supposed to be B_CALL _VPutSN?
I am kind of confused. Huh?

EDIT: I could not find this command in the new tutorials.  Huh?
« Last Edit: 21 March, 2011, 05:26:56 by ralphdspam » Logged

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)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 22:11:33
Date Registered: 28 December, 2009, 18:47:54
Location: Midland, Washington
Posts: 2943


Topic starter
Total Post Ratings: +432

View Profile
« Reply #42 on: 16 March, 2011, 06:00:30 »
0

Quote from: Lesson 11 Page 3
B_CALL _VPutSN
Displays a string specified by HL. The string does not end in a
zero. Instead, the number of characters to display is stored in
register B.
Examples: LD HL, String
LD B, 11
B_CALL PutS
String:
.db “Hello World”

Is that supposed to be B_CALL _VPutSN?
I am kind of confused. Huh?

No need to be confused.  That is indeed another typo
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.

ralphdspam
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: 14 May, 2013, 09:10:11
Date Registered: 01 February, 2011, 07:58:40
Location: California, USA
Posts: 841


Total Post Ratings: +36

View Profile
« Reply #43 on: 16 March, 2011, 06:31:01 »
0

Also, I think:
Quote from: Lesson 11 Page 13
B_CALL _ClrLCDFull
     ld d, MainMenuItem1X ; Stores the X position for the menu
     ld e, MainMenuItem1Y ; Stores the starting Y position for the menu
should be:

1
2
3
     B_CALL _ClrLCDFull
     ld d, MainMenuItem1X ; Stores the X position for the menu
     ld e, MainMenuItem1Y ; Stores the starting Y position for the menu

EDIT: This is not in the new tutorials. 
« Last Edit: 21 March, 2011, 05:27:59 by ralphdspam » Logged

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)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 22:11:33
Date Registered: 28 December, 2009, 18:47:54
Location: Midland, Washington
Posts: 2943


Topic starter
Total Post Ratings: +432

View Profile
« Reply #44 on: 16 March, 2011, 06:33:55 »
0

Oh, I missed that tab, didn't I  Frustrated
« Last Edit: 16 March, 2011, 06:34:17 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.

Pages: 1 2 [3] 4   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.267 seconds with 31 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.