summaryrefslogblamecommitdiff
path: root/demo/source/setcolbdr.c
blob: 1173d55b120768a7614dbcbed132ff733832ce90 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                                                                     
#include <agbx-demo.h>

#include <ax/gfx.h>

void axd_setcolbdr(ax_i02 const _vaddr,ax_i01 const _col) {
	for (ax_i01 px = 0x0u;px != 0xF0u;++px) {
		ax_plot1(_vaddr,px,_col);
	}
	for (ax_i01 px = 0xEFu;px != ax_scrnh3 * ax_scrnw3 + 0xEFu;px += ax_scrnw3) {
		ax_plot1(_vaddr,px,_col);
	}
	for (ax_i01 px = 0x9Fu * ax_scrnw3;px != 0x9Fu * ax_scrnw3 + 0xF0u;++px) {
		ax_plot1(_vaddr,px,_col);
	}
	for (ax_i01 px = 0x0u;px != ax_scrnh3 * ax_scrnw3;px += ax_scrnw3) {
		ax_plot1(_vaddr,px,_col);
	}
}