Re: A82: Someone tell me why this doesn't work
[Prev][Next][Index][Thread]
Re: A82: Someone tell me why this doesn't work
Hehe. Oops, yes that was why. I meant to have bc start with
$0100 but I guess I switched it by mistake. Also, it should
have been ld a,b \ add a,6 \ ld b,a
I use multiple commands on one line 'cuz if you print out
your source a lot, it saves considerable amounts of paper.
Save the trees man :)
On Mon, 01 Jun 1998 17:08:22 +0200 David Eriksson/2GooD Productions
<david@2goodsoft.com> writes:
>
>At 20:38 1998-05-31 -0400, you wrote:
>>
>> ld hl,string
>> ld bc,$0001
>>LOOP:
>> ld (GRAF_CURS),bc
>> ROM_CALL(D_ZM_STR)
>> ld a,c \ add a,6 \ ld c,a
>> cp 24 \ jr nz,LOOP
>>
>>string:
>>.db "Hi",0
>>.db "My name is Joe",0
>>.db "I work in a button",0
>>.db "factory.",0
>>
>>Is it because I have bc mixed up or something? I can't
>>figure it out. Sorry for posting so much lately. I'll
>>attribute it to pre-finals stress.
>
>(Why are people using multiple commands on each line, it's so messy!)
>
>Anyway: 1+6 = 7, 7+6 = 13, 13+6 = 19, 19+6 = 25
>
>So A will never become 24 but rather 25...
>
>
>Sincerely,
> -/- David Eriksson -/-
>
>CalcEm - The Calculator Emulator -> http://www.2goodsoft.com/calcem/
>
_____________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com
Or call Juno at (800) 654-JUNO [654-5866]
References: