aboutsummaryrefslogtreecommitdiff
path: root/print.gbasm
blob: e5bb8985a7b6ea2b31981cd0d1a147a608f362c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Print_8bit: ; Number in A, Memory Tilemap position in HL
	PUSH AF
	PUSH BC

	LD C, A
	SWAP A 				   ; We start by the highest nibble
	AND $0f
	OR $10
	LD (HL+), A
	
	LD A, C
	AND $0f 			   ; Then the lowest
	OR $10
	LD (HL+), A

	POP BC
	POP AF
	RET