/[projet1]/public/pc/tools/osdk/main/Osdk/_final_/lib/overlay.s
Defence Force logotype

Contents of /public/pc/tools/osdk/main/Osdk/_final_/lib/overlay.s

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1002 - (show annotations)
Sun Dec 8 10:50:26 2013 UTC (6 years ago) by dbug
File size: 600 byte(s)
Resynchronized my own changes to the OSDK with what was in the depot.
From now on I will continue the changes directly with the depot version, and try to update more regularly.
The reason I had this big change is that I had two computers with local changes done in demo parties when working on demos, where I did the fixes to handle Euphoric and Oricutron, plus new tools, modified tools, etc... giant mess.
I do not guarantee that what is on the depot is bug free, but it's the version I'm using right now (My OSDK var points to the public\pc\tools\osdk\main\Osdk\_final_ folder.
1
2 _is_overlay_enabled
3 ;jmp _is_overlay_enabled
4 .(
5 ; The overlay test involves writting data,
6 ; so we disable interrupts to avoid side
7 ; effects like a nasty crash.
8 php
9 sei
10
11 ; Read the old value
12 lda $ffff
13
14 ; Try to write 255
15 ldx #$FF
16 stx $ffff
17 cpx $ffff
18 bne not_what_I_wrote
19
20 ; Try to write 0
21 ldx #0
22 stx $ffff
23 cpx $ffff
24 bne not_what_I_wrote
25
26 ; Ram is enabled: Restore the old value
27 sta $ffff
28 ldx #1
29 jmp end
30
31 not_what_I_wrote
32 ; Value is not what I wrote, so this must be ROM
33 ldx #0
34
35 end
36 ; Restore interrupts
37 plp
38 lda #0
39 rts
40 .)

  ViewVC Help
Powered by ViewVC 1.1.26