It is currently Sat Jan 20, 2018 11:49 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 140 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10
Author Message
 Post subject: Re: WIP: Wizard of Wor
PostPosted: Sun Dec 17, 2017 6:23 pm 
Offline

Joined: Mon Jul 03, 2017 4:37 pm
Posts: 103
Damn, Kasumi...you might be right :)

-Thom


Top
 Profile  
 
 Post subject: Re: WIP: Wizard of Wor
PostPosted: Sun Dec 17, 2017 7:30 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19491
Location: NE Indiana, USA (NTSC)
What I tend to do is take the next major task and then repeat the following iteration:

1. Find the first task on the list that I expect to take longer than 15 minutes.
2. If one exists, divide it up into smaller tasks.
3. If a task was split, and there are fewer than 12 tasks, go to step 1.


Top
 Profile  
 
 Post subject: Re: WIP: Wizard of Wor
PostPosted: Sun Dec 17, 2017 9:23 pm 
Offline

Joined: Mon Jul 03, 2017 4:37 pm
Posts: 103
if I could, I'd hug you guys. :) Thanks.

-Thom


Top
 Profile  
 
 Post subject: Re: WIP: Wizard of Wor
PostPosted: Sun Jan 14, 2018 5:39 pm 
Offline

Joined: Mon Jul 03, 2017 4:37 pm
Posts: 103
Am back on WoW, have been so busy lately, and health issues caused me to have to take a break.

Right now, I am refactoring the code, and splitting bits out into seperate files.

In the main .h, I have a set of variables defined in my zeropage bss segment. The problem seems to be when I try to use them in other files. It seems:

Code:
#pragma bssseg (push,"ZEROPAGE")
extern unsigned char spr,i,frame_cnt;
#pragma bssseg (pop)


Produces an address mismatch:
Code:
ld65.exe: Warning: Address size mismatch for `_frame_cnt': Exported from wow.o, wow.s(25) as `zeropage', import in attract_monsters.o, attract_monsters.s(31) as `absolute'
ld65.exe: Warning: Address size mismatch for `_i': Exported from wow.o, wow.s(18) as `zeropage', import in attract_monsters.o, attract_monsters.s(30) as `absolute'
ld65.exe: Warning: Address size mismatch for `_spr': Exported from wow.o, wow.s(24) as `zeropage', import in attract_monsters.o, attract_monsters.s(29) as `absolute'


For some reason, it's ignoring my #pragma and using .import instead of .importzp :/ wtf? I know I'm doing something silly...

What's going on?

-Thom


Top
 Profile  
 
 Post subject: Re: WIP: Wizard of Wor
PostPosted: Sun Jan 14, 2018 5:49 pm 
Offline

Joined: Mon Jul 03, 2017 4:37 pm
Posts: 103
err, turns out I literally had to do this:

Code:
extern unsigned char spr;
#pragma zpsym("spr")
extern unsigned char i;
#pragma zpsym("i")
extern unsigned char frame_cnt;
#pragma zpsym("frame_cnt")


Which is....really fucking awkward...but okay.

-Thom


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 140 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10

All times are UTC - 7 hours


Who is online

Users browsing this forum: Drakim, gauauu and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group