SEI LDA #$2A ;ACTIVATE CONFIG.MODE STA $D0FE LDA #%11000000 ;DEBUG OVERLAY STA $D0FB LDA #%10100000 ;CPU TURBO MODE STA $D0F3 LDX #%00001001 ;ENABLE PALETTE STX $D0FA ;AND VGA+COP LDY #0 VGASETLP LDA V800X600,Y STA $D040,Y LDA VGACONF,Y STA $D050,Y INY CPY #$10 BNE VGASETLP LDY #0 ;FILL PALETTE - maybe they're zeroes by default, I fill them with data to see colors (in 16bit mode palette might be ignored?)... WPALLP TYA STA $D100,Y ASL A STA $D200,Y ASL A STA $D300,Y INY BNE WPALLP WAITKEY LDA $DC01 ;this doesn't debounce but for terminating with C= key it's OK, coz it won't write to the source accidentally on return INC $D020 CMP #$FF BEQ WAITKEY LDA #0 STA $D0FA ;RETURN FROM VGA MODE STA $D0F3 ;TURBO MODE OFF STA $D0FB ;DEBUG OFF LDA #$FF STA $D0FE ;EXIT CONFIG.MODE RTI ;RETURN TO TASS -was it done like this or with BRK/RTS? i don't remember but it worked... ;-------------------DATA---------------- V800X600 .BYTE <800,<600,$32 ;RESOLUTIO - upper nybbles of these values can be automated by this formula (hres/16+vres/256) - but in TASS I preferred readibility .BYTE <1040,<666,$42 ;TOTALSIZE .BYTE <860,<980,$33 ;HSYNC-POS .BYTE <625,<631,$22 ;VSYNC-POS .BYTE 1 ;SELECT ADJUSTED OBJECT .BYTE 0 ;1ST OBJECT TO RENDER .BYTE 8 ;LAST OBJECT TO RENDER .BYTE %11000100 ;POLARITY,CLOCK VGACONF .BYTE 0,0,0,200,200,0 ;POS,SIZE ;just some experimental values, I had no chance to see what they would draw on the screen .BYTE 64,0,0 ;LINE-INC,MMU SLOT .BYTE %00010010 ;FLIP & STRETCH .BYTE 4,4,2,0 ;SCROLL,PAL.OFFS. .BYTE %00000010 ;COLLISIO,ALPHA .BYTE %01010100 ;8BIT MODE ;=======================================
VGAMODE = $d040 ; 0-... (vga mode, as in menu) VGACTRL = $d041 VGACTRL_BUFFER_SHIFT = 0 VGACTRL_FILTER_SHIFT = 2 VGACTRL_SCANLINES_SHIFT = 6 VGACTRL_VICSYNC_SHIFT = 7 VGACTRL_BUFFER_MASK = (3 << VGACTRL_BUFFER_SHIFT) VGACTRL_FILTER_MASK = (3 << VGACTRL_FILTER_SHIFT) VGACTRL_SCANLINES_MASK = (1 << VGACTRL_SCANLINES_SHIFT) VGACTRL_SINGLEBUFFER = $00 VGACTRL_DOUBLEBUFFER = $01 VGACTRL_TRIPLEBUFFER = $02 VGACTRL_FILTERNEAREST = $00 VGACTRL_FILTERSCALE2X = $04 VGACTRL_FILTERALIEN = $08 VGACTRL_SCANLINES = $40 VGACTRL_VICSYNC = $80
Is there a source (at least in txt format) with the new beta 8c register-layout somewhere? Could you point out a link?
My aim is to try out bigger resolutions on the VGA port while the C64 has its own normal display at the same time. The FAQ page said there's no software support for that at the moment but I'd write that kind of software...actually I'd like to experiment with a GUI with window management based on Objects of COP. I see a big red NO in the COP field of the 'Beta Period' page, has this been changed meanwhile with a 'complete redesign'?