Search found 528 matches

by Movax12
Thu Sep 06, 2012 1:40 am
Forum: NESdev
Topic: IF macro for ca65
Replies: 56
Views: 23343

Re: IF macro for ca65

I've polished this up quite a bit, there is some information here: http://mynesdev.blogspot.ca/2012/09/ca65-highlevel-macros.html The expression evaluation code has gone from a huge pile of .IFs down to this: .macro process_expression_FLAGS flagtest, flag, flagisset ; Find a value for which flag we ...
by Movax12
Tue Sep 04, 2012 9:05 am
Forum: NESdev
Topic: IF macro for ca65
Replies: 56
Views: 23343

Re: IF macro for ca65

I added greater and not greater. I also made some the flag checks more restrictive, like a flag name (Z for example) has to be followed by 'set' or 'clear'. I may add a do while loop and get back to actually coding some 6502. If anyone uses this and needs the code to be relocatable, change the jmp i...
by Movax12
Tue Sep 04, 2012 7:13 am
Forum: NESdev
Topic: ASM6 symbol file output.
Replies: 29
Views: 7396

Re: ASM6 symbol file output.

I would think it might be worth exploring what you don't like about ca65 and see if you can work past those things or learn to appreciate them.
by Movax12
Tue Sep 04, 2012 12:00 am
Forum: NESdev
Topic: IF macro for ca65
Replies: 56
Views: 23343

Re: IF macro for ca65

So I was implementing ELSE and I realized that trying to track IF/ENDIF pairs with numbers and math doesn't work. It may work most of the time, but it doesn't work all the time. The only proper way to do it is a stack, and actually it's much easier. So ELSE is working and IF / ENDIF should be 100% r...
by Movax12
Mon Sep 03, 2012 11:25 am
Forum: NESdev
Topic: IF macro for ca65
Replies: 56
Views: 23343

Re: IF macro for ca65

Would it be hard to make macros for greater, not greater, less_equal, not less_equal, that use a branch on Z that jumps over a branch on C? Not hard at all. It also wouldn't be hard to implement do-while loops, or repeat-until. Would "else" be hard? I briefly thought about that, it might ...
by Movax12
Mon Sep 03, 2012 10:53 am
Forum: NESdev
Topic: IF macro for ca65
Replies: 56
Views: 23343

Re: IF macro for ca65

I think my brain would think about that better in terms of "is the result negative or not?" rather than less or greater, but I see your point. So far I have: ; carry set ; carry clear ; no carry ; not carry ; C ; not C ; C set ; C clear ; less ; not less ; greater_equal ; not greater_equal...
by Movax12
Mon Sep 03, 2012 8:38 am
Forum: NESdev
Topic: IF macro for ca65
Replies: 56
Views: 23343

Re: IF macro for ca65

IF Carry Set = BCS IF Equal = BEQ IF Less = BMI(?) The macro would actually change carry set to BCC and equal to BNE since I want to enter the block of code if the flag is set. In normal 6502 assembly Less is BCC, greater or equal is BCS (after a CMP instruction). That is how I implement it in the ...
by Movax12
Mon Sep 03, 2012 1:38 am
Forum: NESdev
Topic: IF macro for ca65
Replies: 56
Views: 23343

IF macro for ca65

I like NESHLA but it's too limiting, and so I moved on to ca65 for various reasons. The things I liked about NESHLA I figured I could do without or get close enough to the same functionality with macros. I decided to recreate the if functionality with macros and I think it is working well. If anyone...
by Movax12
Sat Sep 01, 2012 11:22 pm
Forum: General Stuff
Topic: DD-WRT
Replies: 10
Views: 3192

Re: DD-WRT

That doesn't sound conclusive. I use DD-WRT and have for about a looong time without issue.

There is a trick to recover it using TFTP if you haven't tried that.
by Movax12
Mon Aug 27, 2012 7:33 am
Forum: NESemdev
Topic: What is the meaning of page crossing?
Replies: 10
Views: 2967

Re: What is the meaning of page crossing?

I think some posts here are confusing. There are two kinds of instructions that can result in page crossing: When indexing an absolute or indirect address to find a final address - which does not use the PC, and when branching, which does use the PC and uses signed values.
by Movax12
Mon Aug 20, 2012 5:53 pm
Forum: NESemdev
Topic: puNES Emulator
Replies: 767
Views: 1221047

Re: puNES Emulator (ex Fnes)

Okay thanks for letting me know. I know the video on this laptop isn't fantastic - I didn't know it was that bad.
by Movax12
Fri Aug 17, 2012 8:23 pm
Forum: NESemdev
Topic: puNES Emulator
Replies: 767
Views: 1221047

Re: puNES Emulator (ex Fnes)

I have Intel GM965. I could look into it more, but it seems OpenGL with any filter is basically unplayable, while with filters in software mode the emu runs fine.
by Movax12
Thu Aug 16, 2012 3:15 pm
Forum: General Stuff
Topic: RTS/TBS/Sim Games
Replies: 16
Views: 4105

Re: RTS/TBS/Sim Games

"Sins of a Solar Empire" is pretty good.
by Movax12
Thu Aug 16, 2012 12:41 pm
Forum: NESemdev
Topic: puNES Emulator
Replies: 767
Views: 1221047

Re: puNES Emulator (ex Fnes)

Is it just my old laptop's OpenGL support, or is software video significantly faster in general?
by Movax12
Sun Aug 12, 2012 8:44 am
Forum: General Stuff
Topic: The Great Console Rip-off
Replies: 59
Views: 11529

Re: The Great Console Rip-off

PS3: No hardware PS2 support, no official Linux :x