summaryrefslogtreecommitdiff
path: root/luma/src/luma_setDbl.c
blob: 2a67e23b7b0451f4fdfbcd7c88daa672ddb171e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
	Copyright 2021, 2022 Gabriel Jensen

	This file is part of luma.

	luma is free software: you can redistribute it and/or modify it under the
	terms of the GNU Affero General Public License as published by the Free
	Software Foundation, either version 3 of the License, or (at your
	option) any later version.

	luma is distributed in the hope that it will be useful, but WITHOUT ANY
	WARRANTY; without even the implied warranty of MERCHANTABILITY or
	FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
	License for more details.

	You should have received a copy of the GNU Affero General Public License
	along with luma. If not, see <https://www.gnu.org/licenses/>.
*/

#include "luma.h"

void luma_setDbl(luma_dbl const _addr,luma_dbl const _val) {
	luma_setByte(_addr,(luma_byte)_val);
	luma_setByte(_addr + 0x1,(luma_byte)(_val >> 0x8));
}