A82: Re: Blockbuster v4.0


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

A82: Re: Blockbuster v4.0




why not optimize a little more? this should work and if it doesnt it should 
only require minor adjustments, and saves about 4 bytes over
sams optimization
DrawTitlePic:
	ld hl,Titlepic	  ;big "Blockbuster" picture
	ld de,GRAPH_MEM
	ld bc,193
	ldir
	ld hl,GRAPH_MEM+192
	ld (hl),b
	ld bc,574
	ldir
	ROM_CALL(DISP_GRAPH)

----Original Message Follows----
From: "Sam Heald" <evil_sam@hotmail.com>
Reply-To: assembly-82@lists.ticalc.org
To: assembly-82@lists.ticalc.org
Subject: Re: A82: Re: Blockbuster v4.0


On the subject of optimization...

Why not simplify the draw title pic routine?

DrawTitlePic:
	ld hl,GRAPH_MEM
	ld (hl),0
	ld de,GRAPH_MEM+1
	ld bc,767
	ldir
	ld hl,Titlepic	  ;big "Blockbuster" picture
	ld de,GRAPH_MEM
	ld bc,192
	ldir
	ROM_CALL(DISP_GRAPH)

  It's 22 bytes smaller than your old way (writing to the display port
directly). You may not need to clear the graph buf, which would be 14 bytes
lower still.
   Sam

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com