A82: The Speed82 Competition


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

A82: The Speed82 Competition





On Thu, 29 Jan 1998 22:55:25 EST GeradS711@aol.com writes:
>
>In a message dated 98-01-28 21:03:09 EST, you write:
>
>> CURRENT STANDINGS:
>>  0 Asm82@aol.com
>>  0 Your name here
>>  
>>  Welcome to the Speed82 competition!
>>  
>>  Every week, I will post a problem that you must solve.  Those who 
>> participate
>>  will get their names posted in the next mailing of this letter and 
>on a web
>>  page whose address is yet to be announced.  Next to their email 
>address
>will
>>  be their total score (keep reading to find out how the points 
>work).
>>  
>>  THE POINT SYSTEM:
>>  1 point for participating
>>  5 points for the most creative approach to solving the problem
>>  10 points given to the person who submits the smallest amount of 
>working 
>> code
>>  10 points given to the fastest working code
>>  
>>  THE PROBLEM:
>>  You must create a subroutine that takes a value in register A.  A 
>has
>either
>>  the value 1,2, or 3.  Depending on the input in A, you must fill 
>the screen
>>  with one of three different characters, depending on what the value 
>in A
>is.
>>  
>>  Example:
>>  if A has the value 1, the screen is completely filled with 'A's
>>  if A has the value 2, the screen is filled with 'B's
>>  if A has the value 3, the screen is filled with 'C's
>>  


eh, fine i'll do this...

start_of_code:
	add a, $40		;makes a=the letter now
	ld hl,0
	ld (CURSOR_POS),hl	;being safe
	ld c,0
	ld b,128		;the whole screen
disploop:
	ROM_CALL(TX_CHARPUT)
	djnz disploop

pauseloop:		;so you can see ur work.
	call GET_KEY
	or a		;any key... if no key then zf
	jr z, pauseloop
	ret	;the end.

ta-da.		-Greg

_____________________________________________________________________
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]


Follow-Ups: References: