integrate sd controller and super simple tb

This commit is contained in:
Byron Lathi
2024-03-10 11:31:07 -07:00
parent 81382925f8
commit da41e60ee7
8 changed files with 228 additions and 23 deletions

View File

@@ -0,0 +1,21 @@
.export _init, _nmi_int, _irq_int
.segment "VECTORS"
.addr _nmi_int ; NMI vector
.addr _init ; Reset vector
.addr _irq_int ; IRQ/BRK vector
SD_CONTROLLER = $e000
CLK_DIV = $20
.code
_nmi_int:
_irq_int:
_init:
lda #$08
sta SD_CONTROLLER
@end: bra @end