[comp.sys.handhelds] CHIP-48 macros for anonymous FTP

SLSW2@cc.usu.edu (Roger Ivie) (09/15/90)

My buddy, the local net.god, made my CHIP8 macros for M80 available for
anonymous FTP here at cc.usu.edu (129.123.1.1).

This is a VAX running VMS so you have to use the password GUEST. The name of
the file is CHIP8.M80. It's an ASCII file suitable for WordStar nondocument
editing (CP/M Lives!).

For the curious, here's the sample program included in CHIP8.M80. It shows
the format of the source using the macro package:


	.XLIST
	INCLUDE CHIP8.MAC
	.LIST

	LD V0,0FFH	; Initialize the delay timer
	LD DELAY,V0

LOOP:	LD I,CHARBUF	; Place to store the BCD
	LD V0,DELAY	; Get current delay value
	LD BCD,V0	; Convert it to BCD
	LD V2,@I	; Pick up the digits

	LD V3,0		; Coords for 100s digit
	LD V4,0
	CHAR V0		; Point at the character
	SHOW V3,V4,5	; Display it

	LD V3,6		; X coord for 10s digit
	CHAR V1		; Point at the character
	SHOW V3,V4,5	; Display it

	LD V3,11	; X coord for 1s digit
	CHAR V2		; Point at the character
	SHOW V3,V4,5	; Display it

	JUMP LOOP	; Keep going forever

CHARBUF:
	DB 0,0,0

	END

Enjoy.
-- 
===============================================================================
Roger Ivie

35 S 300 W
Logan, Ut.  84321
(801) 752-8633
===============================================================================