| |
Peabrain Account closed
Registered: Feb 2003 Posts: 24 |
Reading RAM under ROM at $e000 doesn't work
hello,
i try to read the memory under the kernal rom, but it doesn't work.
my $01 config is $35. so the processor should read it.
if i use another config my program crashed. so what could i do?
please help.
thanks. |
|
| |
JackAsser
Registered: Jun 2002 Posts: 2014 |
That should work. Did it crash? Perhaps you're using IRQ on kernel-vector $0314/15? If you set $01 to #$35 then the HW IRQ-vector at $fffe/ffff will also be seen as RAM by the CPU hence point to oblivion unless you've explicitly set it. |
| |
algorithm
Registered: May 2002 Posts: 705 |
Did you check the data direction port register at $00? By default if you have left this location as it is, then this should not be a problem.
and i know you may have done this already but check that it is #$35 instead of $35 :-) |
| |
Peabrain Account closed
Registered: Feb 2003 Posts: 24 |
i use the hw irq vector. and it don't crash if #$35 in $01. in $00 is #$2f.
if:
$e000 -> $00
and i do
lda $e000
sta $e000
then:
$e000 -> ?? but not $00
that my problem. :-/ |
| |
Zyron
Registered: Jan 2002 Posts: 2381 |
So what do you get in $e000? |
| |
Peabrain Account closed
Registered: Feb 2003 Posts: 24 |
ok, i got the problem. thats happen, if you use cc65 and assembler.
it seems to be that the cc65 overwrites my value in $01.
thats bad.
if i write:
ldx $01
lda #$35
sta $01
lda $e000
sta $e000
stx $01
this is running.
damned. |
| |
chatGPZ
Registered: Dec 2001 Posts: 11386 |
you really should post a snippet of code that doesnt work... else it is shooting in the dark :=) it must be some stupid little trival thing that you are overlooking =) |
| |
Peabrain Account closed
Registered: Feb 2003 Posts: 24 |
thats a little bit too huge. :D
but i checked the cc65 specs. the normal projectseting are with kernelroms enabled.
and i must visit the documentation. its not a problem of my code :) |
| |
Oswald
Registered: Apr 2002 Posts: 5094 |
if you dont have high expectations from an assembler other than compiling your lda sta code, maybe macro a bit, and generate some tables, then you better use 64tass. cc65 is an overcomplicated bloated shit if you are not close to a genius. |
| |
enthusi
Registered: May 2004 Posts: 677 |
+ cc65 is no assembler |
| |
Peabrain Account closed
Registered: Feb 2003 Posts: 24 |
yes. but i use cc65 for my c code and as linker for my assembler stuff. |
... 7 posts hidden. Click here to view all posts.... |
Previous - 1 | 2 - Next |