http://calcg.org/newlogo2.png Not Logged in.
Login | Register

User Forums \ Haveacalc's Code-in-a-Program Doing \ ErrorLib

Click here to log in (you must be logged in to post comments).

AuthorComment
haveacalc
Guardian
avatar
Posted: 16 Apr 2007
21:48 GMT
Total Posts: 1111
Well, this is my first little jump into Assembly. I only really made it (and submitted it) because I couldn't find any other program of the like already in existence.

Given a number (1 to 51) from Ans, it uses _JError to spit out an error. I can think of several instances of when this might be desirable. Back to memorizing opcodes...

---
-quoted directly from most movies that don't exist (and some that do).
threefingeredguy
Ghost
avatar
Posted: 16 Apr 2007
22:25 GMT
Total Posts: 1189
I can see this being useful.

---
Someone call for an exterminator?
banjo2E
Wraith
avatar
Posted: 17 Apr 2007
05:51 GMT
Total Posts: 689
Mufufufufu.....

banjo2E gets out the pending generic phone parody program he's been making

---
http://uncyclopedia.org/wiki/User:Administrator <------ WOOOOO!!!!!
haveacalc
Guardian
avatar
Posted: 17 Apr 2007
18:39 GMT
Total Posts: 1111
Ihh. I just realized that there was something wrong with the ErrorLib that I submitted. The current thing should be as follows:
AsmPrgm
EFD74A
EFEF4A
AF83
2804
FE34
3802
3E0C
EFD744
or:
b_call(_RclAns)  ;This stores the real
b_call(_ConvOP1) ;integer part of Ans to DE.
xor a ;I did it this way only because
add a,e ;ld doesn't alter the flags.
jr z,04 ;These four lines
cp 34h ;are to keep A
jr c,02 ;between
ld a,0Ch ;1 and 51
b_call(_JError)

I guess I'll just be on the lookout for when it gets added so I can change it.

Edit:There it is!

---
-quoted directly from most movies that don't exist (and some that do).
banjo2E
Wraith
avatar
Posted: 18 Apr 2007
05:48 GMT
Total Posts: 689
That is one tiny program. Does it just run a random error?

Edit: I am an idiot. Ha hahahahaha hahahahaha. Yeah. Just ignore me.

---
http://uncyclopedia.org/wiki/User:Administrator <------ WOOOOO!!!!!





Portal | My Account | Register | Lost Password or Username | TOS | Disclaimer | Help | Site Search | File Archives Copyright 2002-2011 CalcG.org