English Amiga Board


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

 
 
Thread Tools
Old 15 August 2017, 00:13   #1
LuigiThirty
Registered User
 
Join Date: Dec 2016
Location: USA
Posts: 101
Blitter line mode examples?

I have a 65816 program I wrote for the Apple IIgs that draws affine-transformed polygons and I'm trying to rewrite it for the Amiga in 68000 ASM. To avoid reinventing the wheel I want to use the blitter's line-drawing mode instead of writing a Bresenham algorithm for the millionth time. The examples in the hardware manual aren't easy to understand and I'm confused about all the options the line-drawing mode uses. Is there a simple "draw a line to one bitplane in any octant" example online somewhere I can start with?
LuigiThirty is offline  
Old 15 August 2017, 01:33   #2
idrougge
Registered User
 
Join Date: Sep 2007
Location: Stockholm
Posts: 4,342
The hardware reference manual has an example.
idrougge is offline  
Old 15 August 2017, 07:49   #3
LuigiThirty
Registered User
 
Join Date: Dec 2016
Location: USA
Posts: 101
So it does. I got it hooked up to my program and drawing 1px lines everywhere. and I'll see if I can deconstruct it and adapt it for my needs.
LuigiThirty is offline  
Old 16 August 2017, 20:53   #4
LuigiThirty
Registered User
 
Join Date: Dec 2016
Location: USA
Posts: 101
Okay, I've got a weird problem where I can loop forever manually in the debugger but trying to run the rotation code in a loop locks up my system. I set up some debug output to SER: and the loop is only running once. Are my WaitVBL/WaitBlit macros correct or is there another problem I've overlooked? FrameLoop is the function that's looping and crashing.

https://pastebin.com/iVdHWKSj
LuigiThirty is offline  
Old 17 August 2017, 08:26   #5
LuigiThirty
Registered User
 
Join Date: Dec 2016
Location: USA
Posts: 101
I fixed it - it was WaitBlit that was messed up.

And then after converting it to use the VBL interrupt I spent an hour figuring out why the interrupt wasn't being fired before realizing I had MuFastZero installed so modifying $6C didn't do anything anymore.
LuigiThirty 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
Keep Active control panel "Line Mode" and "Interlaced Line Mode" Zilog request.UAE Wishlist 4 02 August 2014 23:08
Blitter poly-line draw & filling - the 100th Herpes Coders. Asm / Hardware 12 14 May 2014 01:34
Fast Blitter Line Clipping 71M Coders. Asm / Hardware 2 03 March 2014 22:33
Clipping line for blitter fill leonard Coders. Asm / Hardware 12 27 April 2013 12:03
Line mode blitter absence Coders. General 4 25 September 2009 20:50

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 22:14.

Top

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