15 August 2017, 00:13 | #1 |
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?
|
15 August 2017, 01:33 | #2 |
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 4,342
|
The hardware reference manual has an example.
|
15 August 2017, 07:49 | #3 |
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.
|
16 August 2017, 20:53 | #4 |
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 |
17 August 2017, 08:26 | #5 |
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. |
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 |
|
|