[TI83p-ASM] Come here to worship 83pa28d!
Moderator: MaxCoderz Staff
-
- Calc King
- Posts: 1513
- Joined: Sat 05 Aug, 2006 7:22 am
Jim is right, it's actually a bad mnemonic, but I guess we'll have to live with it.. blame ZiLOG..
On the other hand, it's a jump, which is in fact a load, but it looks like a jump. So one could think 'jump to the instruction pointed at by hl' which would explain the reference brackets.
If jp xxx was defined as 'ld pc,xxx' then it would be completely wrong.
btw, you can't very well load a 16bit reg with a 8bit value.. 'ld pc,(hl)' would be completely impossible.
On the other hand, it's a jump, which is in fact a load, but it looks like a jump. So one could think 'jump to the instruction pointed at by hl' which would explain the reference brackets.
If jp xxx was defined as 'ld pc,xxx' then it would be completely wrong.
btw, you can't very well load a 16bit reg with a 8bit value.. 'ld pc,(hl)' would be completely impossible.
-
- Calc King
- Posts: 1513
- Joined: Sat 05 Aug, 2006 7:22 am
-
- Calc King
- Posts: 1513
- Joined: Sat 05 Aug, 2006 7:22 am
-
- Calc King
- Posts: 1513
- Joined: Sat 05 Aug, 2006 7:22 am
recently found this:
(this is from day 25)
Either E is not the y coordinate or you aren't supposed to overwrite it with L, but this doesn't make much sense.
(this is from day 25)
Code: Select all
; A = x coordinate
; E = y coordinate LOOK HERE
; B = number of rows
; IX = address of sprite
LD H, 0
LD D, H
LD E, L ;AND LOOK HERE
-
- Calc King
- Posts: 1513
- Joined: Sat 05 Aug, 2006 7:22 am
He does have an account on this forum - does he ever check us?
I don't know whether this is worth mailing him for though.. Just a minor typo - and it keeps you sharp while you're reading
edit: this is more serious, if it has been noted already then sorry but I'm too lazy to read everything again:
I don't know whether this is worth mailing him for though.. Just a minor typo - and it keeps you sharp while you're reading
edit: this is more serious, if it has been noted already then sorry but I'm too lazy to read everything again:
P/V is reset if BC becomes zero. Reset otherwise.