include all files

This commit is contained in:
2025-12-22 13:34:10 +01:00
commit 2f1714851f
7 changed files with 125 additions and 0 deletions

8
include/asm.h Normal file
View File

@@ -0,0 +1,8 @@
/* Contains some assembly-specific instructions
* that ought to be beneficial*/
#pragma once
#define lo8(x) ((x) & 0xFF) /* Use bits 0..7 of x. */
#define hi8(x) (((x) >> 8) & 0xFF) /* Use bits 8..15 of x. */
#define hlo8(x) (((x) >> 16) & 0xFF) /* Use bits 16..23 of x. */
#define hhi8(x) (((x) >> 24) & 0xFF) /* Use bits 24..31 of x. */

0
include/avr.h Normal file
View File

8
include/avr/avr128da28.h Normal file
View File

@@ -0,0 +1,8 @@
#pragma once
#include "asm.h"
/* I/O addresses. */
#define SPH 0x3E /* Stack pointer high address. */
#define SPL 0x3D /* Stack pointer low address. */
#define RAMEND 0x4000 /* The maximum address available in RAM. */