avr: added test image for flash tests.

This commit is contained in:
Martin Preuss
2023-04-20 00:44:02 +02:00
parent 6f5ab3b0b8
commit 600a6d01ac
2 changed files with 62 additions and 1 deletions

View File

@@ -37,6 +37,8 @@
</target> </target>
<target type="AvrHexFile" name="att84_base" > <target type="AvrHexFile" name="att84_base" >
<includes type="avrasm" > <includes type="avrasm" >
@@ -52,7 +54,27 @@
</target> </target>
<target type="AvrHexFile" name="att84_testflashimg" >
<includes type="avrasm" >
-I $(builddir)
-I $(srcdir)
-I $(topsrcdir)/avr
</includes>
<sources type="avrasm" >
att84_testflashimg.asm
</sources>
</target>
</gwbuild> </gwbuild>

View File

@@ -0,0 +1,39 @@
.nolist
.include "include/tn84def.inc" ; Define device ATtiny84
.list
; ***************************************************************************
; defines
; ---------------------------------------------------------------------------
; generic
.equ clock=1000000 ; Define the clock frequency
; ***************************************************************************
; code segment
.cseg
.org 0x0200
.db 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07
.db 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17
.db 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27
.db 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37
.db 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47
.db 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57
.db 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67
.db 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77
.db 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87
.db 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97