24 October 2017, 01:47 | #1 |
Registered User
Join Date: Sep 2017
Location: Novi Sad
Posts: 23
|
640x256 HAM8 mode init
Hello,
Ive started to remember my ols asm days and wanted to experiment a bit with ham8 modes. But i think i got stupid and cant initialize ham8 mode in hi res. Tried to find a calculation example and/or sample code, but the mode is a bit strange so after a few days im writing this Code:
move.w #$8810,BPLCON0 ; move.w #$0000,BPLCON1 ; horizontal scroll 0 move.w #$0080,BPL1MOD ; odd modulo move.w #$0080,BPL2MOD ; even modulo move.w #$2c81,DIWSTRT ; DIWSTRT - topleft corner move.w #$f4c1,DIWSTOP ; DIWSTOP - bottomright corne move.w #$003c,DDFSTRT ; DDFSTRT move.w #$00d4,DDFSTOP ; DDFSTOP Regards |
25 October 2017, 16:12 | #2 |
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
|
For an interleaved bitmap aligned on 8 bytes:
Code:
move.w #bpl_8bpl|bpl_ham|bpl_hires|bpl_color, bplcon0 move.w #0, bplcon1 move.w #0, bplcon2 move.w #bpl_pf2offs8|bpl_spreslo, bplcon3 move.w #bpl_evenbank1|bpl_oddbank1, bplcon4 move.w #fmode_bpl64, fmode move.w #640/8*7, bpl1mod move.w #640/8*7, bpl2mod move.w #$38, ddfstrt move.w #$c0, ddfstop move.w #$2c81, diwstrt move.w #$2cc1, diwstop ; move.w #$e0c1, diwstop |
25 October 2017, 21:21 | #3 |
Registered User
Join Date: Sep 2017
Location: Novi Sad
Posts: 23
|
Wow, great example.
Thank you. I will start testing |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Miami init / virgin media superhbub 2 | XsamX1987 | support.Hardware | 6 | 08 March 2017 17:12 |
Cortex FE init error | ragraphics | support.Hardware | 2 | 04 May 2015 18:17 |
HAM8 screen question. | Thorham | Coders. General | 28 | 04 April 2011 19:26 |
HAM8 C2P Hacking | NovaCoder | Coders. General | 2 | 25 March 2010 10:37 |
Multiple HAM8 pictures? | killergorilla | support.Other | 4 | 15 February 2007 14:41 |
|
|