Skip to content

Commit

Permalink
A2600: init_rw_memory should be inlineable
Browse files Browse the repository at this point in the history
  • Loading branch information
KarolS committed Oct 24, 2019
1 parent 6fddf1c commit 72de22b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/init_rw_memory.mfk
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#if TINY_RW_MEMORY

noinline asm void init_rw_memory() {
asm void init_rw_memory() {
? ldx #__rwdata_size.lo // can't be more than $00FC
? beq __init_rw_memory__skip3
+ memory_barrier()
Expand All @@ -18,7 +18,7 @@ __init_rw_memory__loop3:
? bne __init_rw_memory__loop3
+ memory_barrier()
__init_rw_memory__skip3:
rts
? rts
}

#else
Expand Down

0 comments on commit 72de22b

Please sign in to comment.