Re: A82: Beginner-ish Q's


[Prev][Next][Index][Thread]

Re: A82: Beginner-ish Q's




At 11:43 PM 5/19/98 EDT, you wrote:
>In a message dated 98-05-19 22:20:54 EDT, you write:
>
>> Invalid code:
>>  	ld hl,0
>>  	ld (CURSOR_Y),hl
>>  	ld (CURSOR_X),hl
>>  	ld hl,Titletxt1
>>  	ROM_CALL(D_ZM_STR)
>>  	ld a,19
>>  	ld (CURSOR_Y),a
>>  	ld a,Titletxt2
>>  	ROM_CALL(D_ZM_STR)
>
>the thing you want to do at the beginning is ld hl, 0 \ ld (CURSOR_POS), hl.
>that's it

uhhh....Adamman, this guy wants to put small font on the screen...not the
large text (in that case it WOULD use CURSOR_POS).  The code should
actually be:

Valid_Code:
  ld hl,0
  ld (CURSOR_X),hl   ; Sets both CURSOR_X and CURSOR_Y = 0
  ld hl,Titletxt1
  ROM_CALL(D_ZM_STR)
  xor a
  ld (CURSOR_X),a
  ld a,19
  ld (CURSOR_Y),a
  ld hl,Titletxt2
  ROM_CALL(D_ZM_STR)

I found about 5 errors total.  This should fix them all.  Hope that helps.


                 Thomas J. Hruska -- thruska@tir.com
Shining Light Productions -- "Meeting the needs of fellow programmers"
         http://www.geocities.com/SiliconValley/Heights/8504
                    http://shinelight.home.ml.org


References: