26 January 2013, 15:06 | #1 |
Posts: n/a
|
Rewriting m68k code
Hello,
I'm trying to understand and rewrite piece of m68k assembler, disassembled from one old Atari ST game. Could you try to help me? I'm more of a beginner, considering the assembler. Here's the asm code http://pastebin.com/KJCnUbqK and here's what I rewritten so far to C language: http://pastebin.com/fAJ2F6aC So far, I got the the MOVEA instruction and got lost... |
26 January 2013, 16:15 | #2 |
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
|
It simply generates a random name from three of the smaller words.
Specifically, A0 is a pointer to where it wants the name stored and D3 and D4 are states for its pseudo random number generator. It picks one word, stores at A0, capitalizes the first letter, then picks two more and append these to the end along with a null-byte. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Aros m68k (Kickstart substitute) | mihcael | Amiga scene | 392 | 29 November 2022 01:16 |
Csound 3.481 on m68k | squidbass | Amiga scene | 5 | 21 July 2013 21:29 |
AROS m68k Bug Reports | Ezrec | Amiga scene | 1 | 03 October 2011 22:40 |
AROS m68k running on WinUAE | turrican3 | Amiga scene | 1 | 01 January 2011 04:07 |
#M68k @ Amigaworld.net | Iznougoud | Amiga scene | 0 | 06 October 2007 16:35 |
|
|