summaryrefslogtreecommitdiff
path: root/demo/source/setcolbdr.c
blob: 64a0029fdb3624258f95039d1fd01063d9840f93 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <ax-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);
	}
}