|
Atari coding BBS
Re: DSP memorymap problem |
Posted by: Thadoss/Dune
|
Oct,11.2023-00:21
|
After some more tests, it works perfectly for all memory overflow tests :
The secret is to label the beginning of each memory bank (X,Y and P)
For example:
ORG x:0
xmem_start:
first_x_variable dc 0
...
; Test the overflow of the internal X memory bank
IF (*-xmem_start)>$200
FAIL "Internal X memory overflow:",(*-xmem_start)
ENDIF
ORG x:$2000
nth_x_variable: dc 0
; Test the overflow of the external X memory bank
IF (*-xmem_start)>$4000
FAIL "External X memory overflow:",(*-xmem_start)
ENDIF
Then, you do the same for Y memory :
ORG y:0
ymem_start:
first_y_variable: dc 2000
IF (*-ymem_start)>$200
FAIL "Internal Y memory overflow:",(*-ymem_start)
ENDIF
and so on for every bank of memory you have to test.
And of course, the same for the P memory.
; Interrupt vector 0, start address of the DSP program
ORG P:0
startcode: jmp <$40
; Begining of the code
ORG P:$40
...
In fact, you just have to set the 3 variables
xmem_start
ymem_start
pmem_start
and all the compiler memory tests can be done with the * character.
Thanks again ggn.
Regards
Thadoss.
|
[All messages in this thread] [Start new thread]
Topic
|
Posted by
|
Date
|
DSP memorymap problem
|
Emphii
|
Jun,26.2018-21:56
|
Re: DSP memorymap problem
|
Emphii
|
Jun,26.2018-21:58
|
Re: DSP memorymap problem
|
mikro
|
Jun,27.2018-10:24
|
Re: DSP memorymap problem
|
Emphii
|
Jun,27.2018-11:25
|
Re: DSP memorymap problem
|
tat
|
Jun,27.2018-12:25
|
Re: DSP memorymap problem
|
ggn
|
Jun,27.2018-14:31
|
Re: DSP memorymap problem
|
insane/tscc
|
Jun,27.2018-15:16
|
Re: DSP memorymap problem
|
Emphii
|
Jun,27.2018-23:27
|
Re: DSP memorymap problem
|
tat
|
Jun,29.2018-15:35
|
Re: DSP memorymap problem
|
Emphii
|
Jul,03.2018-20:14
|
Re: DSP memorymap problem
|
Daniel / New Beat
|
Jul,05.2018-00:07
|
Re: DSP memorymap problem
|
Emphii
|
Jul,05.2018-14:22
|
Re: DSP memorymap problem
|
mikro
|
Jul,06.2018-08:15
|
Re: DSP memorymap problem
|
mikro
|
Jul,06.2018-08:17
|
Re: DSP memorymap problem
|
Emphii
|
Jul,12.2018-23:09
|
Re: DSP memorymap problem
|
Thadoss/Dune
|
Sep,30.2023-09:54
|
Re: DSP memorymap problem
|
ggn
|
Oct,10.2023-16:19
|
Re: DSP memorymap problem
|
Thadoss/Dune
|
Oct,10.2023-23:34
|
Re: DSP memorymap problem
|
Thadoss/Dune
|
Oct,10.2023-23:55
|
Re: DSP memorymap problem
|
Thadoss/Dune
|
Oct,11.2023-00:21
|
What's the anti-troll code? That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
|