summaryrefslogblamecommitdiff
path: root/agbx/source/gfx/plot.c
blob: a1002080bc44b2947c9db9a29b2985649cbb15d9 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                                                            
                                                                                                                     

  
                    
 
                   
 

                                                                
                                        

 

                                                                                   
                                  

 

                                                                                    
                                   
 
/*
	Copyright 2022 Gabriel Jensen.
	This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
	If a copy of the MPL was not distributed with this file, You can obtain one at <https://mozilla.org/MPL/2.0>.
*/

#include <ax/priv.h>

#include <ax/gfx.h>

void ax_plot3(ax_i8 const _x,ax_i8 const _y,ax_i01 const _col) {
	ax_i01 const px = _y * 0xF0u + _x;
	__ax_setpx2(0x600'0000u,px,_col)
}

void ax_plot4(ax_i02 const _vaddr,ax_i8 const _x,ax_i8 const _y,ax_i8 const _col) {
	ax_i01 const px = _y * 0xF0u + _x;
	ax_setpx1(_vaddr,px,_col);
}

void ax_plot5(ax_i02 const _vaddr,ax_i8 const _x,ax_i8 const _y,ax_i01 const _col) {
	ax_i01 const px = _y * 0xA0u + _x;
	__ax_setpx2(_vaddr,px,_col)
}