
April 11th, 2006, 09:02 PM
|
|
Contributing User
|
|
Join Date: Feb 2004
Location: San Francisco Bay
|
|
|
I've never seen that language before, so I'm having to assume some things. I think I see some errors already:
- The "BLT IF" seems to be a no-op: if true, it goes to IF (the next instruction), and if false, it just goes to the next statement (which happens to be IF), right? I think what you really want to do is branch to DONE if A > 10.
- After the first pass through the "if", register A no longer contains A + B, but you continue to use it as such.
- I don't understand "DONE BRA DONE". Isn't that a one-instruction infinite loop?
|