PDA

View Full Version : Basic Vector Code wanted


redblade
27 September 2005, 02:02
Hi.

ER does any one have any basic Vector code in asm which they would like to pass my way please :).

On a boot block of a ANC disk, there is a 1k vector intro, but the boot block seems to be compressed so am having trouble trying to dissassemble the boot block.

girv
28 September 2005, 11:17
You could always, oooh I dunno, decompress it maybe? ;) If you're able to understand vector code just from disassembly you're able to run it through a simple decompressor first...

Check on Aminet - ISTR there was some simple example vector code on there.

redblade
28 September 2005, 22:45
hey matey I'm having trouble dissassembling the boot block. I can make out some of the code ie where it allocates memory, and then where the program jumps to.

but when I use the 'g' command on the arc to jump to that addy it just does a rainbow effect and i have to reset WinUAE.

I'll have a look at aminet again.

Also yes I do have that vectors.txt that comes on one of 'the source' compilations but I suck at coding, and just can't code from scratch, unless it's something easy like

'hello world', opening a screen and a window, etc etc.

btw: the vector code I want is that 3d gfx stuff, not the hardware vectores ie $6c.w

AmiGer
29 September 2005, 08:31
Can you please post the 1024 Bytes bootblock ? Maybe somebody can help you...

OddbOd
29 September 2005, 16:14
How to code vector demos on a MC68000 (http://www.programmersheaven.com/zone20/cat115/3407.htm) by Asterix of Movement

It's a tutorial with example sources at the end, should be a good enough starting point.

mr_0rga5m
29 September 2005, 17:53
Also can be found here (http://www.mways.co.uk/amiga/howtocode/) .. (On Jolyons site) :)

redblade
29 September 2005, 22:55
Hi I mentioned I had that file that yous mentioned in post #3, as I got it from 'the source' disks, from one of those 'how to code' tutorials.

@AmiGer. Hey matey uploading the disk now, its ANC utilities disk #21, it'll be in the zone.

AmiGer
30 September 2005, 08:58
Here we go...

the trick is, that this isn't a 1k bootblock, it makes a DoIO-read and reads $1000 bytes from the offset $400 and executes this at the absolute address $24ed8.
I post the complete source, IRA config file and binary for you. Have fun.

BTW: I found out that you can change some vector parameters by moving the mouse and pressing keys on the numeric keypad... nice :)

ira -binary -a -offset=24ed8 -config vector2

redblade
30 September 2005, 22:13
Cheers Matey :).

I know about moving the mouse gave different affects but did not know about the numeric keypad.

Cheers :).

mr_0rga5m
01 October 2005, 01:24
I know about moving the mouse gave different affects but did not know about the numeric keypad.


Then you didnt boot the disk .. :D

AmiGer
01 October 2005, 10:04
For me I didn't boot the disk.
I've seen the keyboard handler in the source... But who reads so much text ??? :)

mr_0rga5m
01 October 2005, 11:34
yea same here .. i found it before i booted the disk too. :)

so redblade, you done anything with the source yet mate ?

Codetapper
02 October 2005, 00:02
No offense, but if you get stuck disassembling a 1k bootblock which just does a few simple DoIO commands, you are unlikely to get anywhere with a full on program using the blitter to draw vectors...

redblade
02 October 2005, 03:24
No offense, but if you get stuck disassembling a 1k bootblock which just does a few simple DoIO commands, you are unlikely to get anywhere with a full on program using the blitter to draw vectors...

Yep your pretty much 100% right there :).

@Mr_Orgasm: not much, Having trouble assembling it in AsmOne1.6, the first error was with the ABSEXECBASE equate. got that fixed, just did a replace to $4, but it should of worked without that.

it just seems to be some label problems with assembling it :/.

AmiGer
02 October 2005, 19:35
redblade, don't hurry, every amiga cracker has once started to use miggy assemblers and disassemblers. I think it's really cool that a 21 old guy is doing this... :)

Having trouble assembling it in AsmOne1.6

You could try phxasm instead...

redblade
02 October 2005, 23:31
redblade, don't hurry, every amiga cracker has once started to use miggy assemblers and disassemblers. I think it's really cool that a 21 old guy is doing this... :)

You could try phxasm instead...

heh cheers dude, but i'm not a cracker :), although a hacked version of roxbox would be nice hehe.

nah just want to see some of my own vectors rotating in a screen in front of me, that all like a cube/stealth bomber etc.

redblade
24 December 2005, 05:41
http://groups.google.com/group/alt.sources.amiga/browse_thread/thread/4fa7bbe02101853/fd0b57c9bf725ecf?lnk=st&q=amiga+vector+moveq&rnum=4#fd0b57c9bf725ecf

managed to find some vector code on google Groups. Good old google groups, lots of interesting posts on there.