English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 24 October 2017, 01:47   #1
milikabdp
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
I need 640x256 in ham8 and later 640x180 can someone please help

Regards
milikabdp is offline  
Old 25 October 2017, 16:12   #2
Leffmann
 
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
Attached Files
File Type: txt hardware.i.txt (15.6 KB, 136 views)
Leffmann is offline  
Old 25 October 2017, 21:21   #3
milikabdp
Registered User
 
Join Date: Sep 2017
Location: Novi Sad
Posts: 23
Wow, great example.
Thank you.

I will start testing
milikabdp is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:33.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.28655 seconds with 16 queries