Search found 19 matches

by SegaDev
Thu Sep 24, 2015 12:48 am
Forum: Megadrive/Genesis
Topic: Charles McDonald's 32X and Sega CD Documents
Replies: 2
Views: 3252

Charles McDonald's 32X and Sega CD Documents

Does anyone know if Charles McDonalds made a document for the 32X and Sega CD like he did for the Genesis? If not then can someone please point me to something close to it? Any assistance in this matter would be greatly appreciated.

Sincerely,

SegaDev
by SegaDev
Sat Sep 19, 2015 10:29 pm
Forum: Megadrive/Genesis
Topic: Sprite Isn't Showing Up
Replies: 35
Views: 21862

Re: Sprite Isn't Showing Up

A solution for a fixed digit score counter was mentioned over at AssemberGames: Store a string of '0' chars in RAM ("00000000"), and increment the bottom byte for each point awarded, then iterate each digit checking for overflow (clamp to 9 and add 1 to the next char, etc). Obviously it's very prim...
by SegaDev
Wed Sep 16, 2015 3:38 am
Forum: Megadrive/Genesis
Topic: Sprite Isn't Showing Up
Replies: 35
Views: 21862

Re: Sprite Isn't Showing Up

Tested and working: sub.l #0x8, sp ; Alloc string space on stack move.l sp, a0 ; String to a0 move.w #0xAB12, d0 ; Integer to d0 jsr ItoA_Hex_w ; Integer to ASCII (hex word) move.l sp, a0 ; String to a0 move.l #PixelFontTileID, d0 ; Font to d0 move.l #0x0808, d1 ; Position to d1 move.l #0x0, d2 ; P...
by SegaDev
Mon Sep 14, 2015 5:47 pm
Forum: Controls
Topic: Mega Mouse Usage
Replies: 23
Views: 38126

Mega Mouse Usage

Hi,

I was wondering if anyone knew how the mega mouse worked and if anyone could provide source code to get the muse working, preferably something we can add to the framework would be greatly appreciated.

Sincerely,

SegaDev
by SegaDev
Fri Sep 04, 2015 10:45 pm
Forum: Megadrive/Genesis
Topic: Sprite Isn't Showing Up
Replies: 35
Views: 21862

Re: Sprite Isn't Showing Up

Your labels need colons: after them :) Wrong, it's determined by whether there's whitespace before the text or not. The colon is actually optional. Awesome, didn't know that! ... I'm not sure then, it looks fine from what I can see. Send full source? Sure here the link to the latest version of the ...
by SegaDev
Wed Sep 02, 2015 10:51 pm
Forum: Megadrive/Genesis
Topic: Sprite Isn't Showing Up
Replies: 35
Views: 21862

Re: Sprite Isn't Showing Up

Your labels need colons: after them :) Nope that didn't work either: C:\segadev\src> build C:\segadev\src>del rom.bin C:\segadev\src>asm68k.exe /p source.asm,rom.bin SN 68k version 2.53 C:\SEGADEV\SRC\FRAMEWORK\UTILITY.ASM(26) : Error : Symbol 'asciialphaoffset' not defined C:\SEGADEV\SRC\FRAMEWORK...
by SegaDev
Tue Sep 01, 2015 10:52 pm
Forum: Megadrive/Genesis
Topic: Sprite Isn't Showing Up
Replies: 35
Views: 21862

Re: Sprite Isn't Showing Up

Here's the hex word version: ItoA_Hex_w: ; Converts a word to hex ASCII ; a0 --- In/Out: String address ; d0 (w) In: Number to convert ; 4 nybbles + 0x + terminator, working backwards add.l #0x7, a0 ; Zero terminate move.b #0x0, -(a0) move.w #0x0, d1 ; Char ptr move.w #0x3, d2 ; 4 nybbles in a word...
by SegaDev
Mon Aug 24, 2015 10:36 pm
Forum: Megadrive/Genesis
Topic: Sprite Isn't Showing Up
Replies: 35
Views: 21862

Opcodes and word/longword data must rest on an aligned boundary - e.g., you can't move a word from an address like 0x00FF001B since it's not divisible by 2. In your code you have a strings.asm file which holds data of an odd size, so anything you include after it will rest on an uneven boundary, an...
by SegaDev
Wed Aug 19, 2015 11:18 pm
Forum: Megadrive/Genesis
Topic: Sprite Isn't Showing Up
Replies: 35
Views: 21862

Oh I forgot to mention the alignment bug! Your strings file is an odd number of bytes, then you include the spritedesc file underneath it. Add an 'even' keyword or include the strings file last. On hardware it crashes, on emulators the sprites table is one byte out. Thanks, i managed to get it work...
by SegaDev
Tue Aug 18, 2015 3:12 am
Forum: Megadrive/Genesis
Topic: Sprite Isn't Showing Up
Replies: 35
Views: 21862

Seems fine here after all the suggestions above. ComadeOj was correct, it was just off screen: http://i.imgur.com/vSTiPNF.jpg Apologies for the not-so-simple SpriteSetPos subroutines, the new ones were to support massive sprites made up of arbitrary sizes subsprites. I should have kept the simpler ...
by SegaDev
Sat Aug 15, 2015 6:33 pm
Forum: Megadrive/Genesis
Topic: Sprite Isn't Showing Up
Replies: 35
Views: 21862

Ahh yes, that's a fairly new attempt at making it support multiple sprites and subsprites in any combination, it'll need a bit more info to work out the positions of each sprite. Here's some example params: Sprite_SonicDimensions: equ 0x0202 ; 2x2 subsprites Sprite_SonicSizeS: equ 4 ; Sprite size i...
by SegaDev
Wed Aug 12, 2015 8:55 pm
Forum: Megadrive/Genesis
Topic: Sprite Isn't Showing Up
Replies: 35
Views: 21862

Thanks for the kind words! :D You're right, the link works now so I'll take a peek at the source and check out the framework BigEvilCorporation wrote. Your welcome, your famous among the community. Anyways thanks for taking the time to look at the source code and try to figure out whats wrong. Sinc...
by SegaDev
Wed Aug 12, 2015 1:14 am
Forum: Megadrive/Genesis
Topic: Sprite Isn't Showing Up
Replies: 35
Views: 21862

The link to the source code doesn't work anymore. Have you checked the code that writes data (namely the sprite data) to VRAM is working correctly? For example is the increment value in register $8F set to the right value? Are you Charles MacDonald, the Charles MacDonald who wrote the Bible on Sega...
by SegaDev
Tue Aug 11, 2015 11:44 pm
Forum: Megadrive/Genesis
Topic: Sprite Isn't Showing Up
Replies: 35
Views: 21862

If I load rom.bin on KMod, I see 1 8x8 sprite at (0, 265), using tile 1792, priority , using pal 1, linked to 0 a brown square so it's still not visible ;) Not sure how thats possible so I'll break it down piece by piece: 1 8x8 sprite at (0, 265) First part is correct, the last part isn't globals.a...
by SegaDev
Mon Aug 10, 2015 11:32 pm
Forum: Megadrive/Genesis
Topic: Sprite Isn't Showing Up
Replies: 35
Views: 21862

It's there, but it's off screen. The Y position of the sprite was at $30. Anything less than $80 is off-screen. The X position was also going all over the place, so it would randomly show up, if I altered the Y position to also be on screen. I altered the x and y position so they both were F0(240) ...