Skip to content

Commit

Permalink
Add support of ATtuny13
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktor Volisov committed Sep 15, 2023
1 parent a80f491 commit 09cae2c
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 0 deletions.
74 changes: 74 additions & 0 deletions librz/asm/cpus/avr-ATTiny13.sdb.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
RAM_SIZE=64
ROM_SIZE=1024
INTERRUPT_VECTOR_SIZE=2

ADCSRB=io
ADCSRB.address=0x03
ADCL=io
ADCL.address=0x04
ADCH=io
ADCH.address=0x05
ADCSRA=io
ADCSRA.address=0x06
ADMUX=io
ADMUX.address=0x07
ACSR=io
ACSR.address=0x08
DIDR0=io
DIDR0.address=0x14
PCMSK=io
PCMSK.address=0x15
PINB=io
PINB.address=0x16
DDRB=io
DDRB.address=0x17
PORTB=io
PORTB.address=0x18
EECR=io
EECR.address=0x1C
EEDR=io
EEDR.address=0x1D
EEARL=io
EEARL.address=0x1E
WDTCR=io
WDTCR.address=0x21
PRR=io
PRR.address=0x25
CLKPR=io
CLKPR.address=0x26
GTCCR=io
GTCCR.address=0x28
OCR0B=io
OCR0B.address=0x29
DWDR=io
DWDR.address=0x2E
TCCR0A=io
TCCR0A.address=0x2F
BODCR=io
BODCR.address=0x30
OSCCAL=io
OSCCAL.address=0x31
TCNT0=io
OSCTCNT0CAL.address=0x32
TCCR0B=io
TCCR0B.address=0x33
MCUSR=io
MCUSR.address=0x34
MCUCR=io
MCUCR.address=0x35
OCR0A=io
OCR0A.address=0x36
SPMCSR=io
SPMCSR.address=0x37
TIFR0=io
TIFR0.address=0x38
TIMSK0=io
TIMSK0.address=0x39
GIFR=io
GIFR.address=0x3A
GIMSK=io
GIMSK.address=0x3B
SPL=io
SPL.address=0x3D
SREG=io
SREG.address=0x3F
1 change: 1 addition & 0 deletions librz/asm/cpus/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ sdb_files = [
'avr-ATmega88',
'avr-ATmega16',
'avr-ATmega168',
'avr-ATTiny13',
'avr-ATTiny48',
'avr-ATTiny88',
]
Expand Down
1 change: 1 addition & 0 deletions librz/asm/p/asm_avr.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ RzAsmPlugin rz_asm_plugin_avr = {
"ATmega640,"
"ATmega88,"
"ATxmega128a4u,"
"ATTiny13,"
"ATTiny48,"
"ATTiny88,"
};
Expand Down

0 comments on commit 09cae2c

Please sign in to comment.