Search found 351 matches

by Fox
Nov 11, 2010 18:11
Forum: Beginners
Topic: Whats with the Inkey() command?
Replies: 11
Views: 1066

Re: Whats with the Inkey() command?

Hey all. Im new here and was wondering why the Inkey() command works so badly/odd/Im not using it right? Is there a way to use this command so that you don't have to hammer keys to get them to respond? I am using the multikey command now instead so this is purely out of interest. Thanks in advance:...
by Fox
Nov 10, 2010 17:01
Forum: Projects
Topic: ANSiMat - a graphical viewer of ANSI files
Replies: 36
Views: 4870

Can you give me an idea of what kind of splash-screen graphic you want to dazzle people with, in ANSIMAT? To be honest, I'm looking for any possible ANS graphic which would be pleasant to look at, and which would be made specifically for ANSiMat (to avoid any possible legal issues). Ideally, it wou...
by Fox
Nov 01, 2010 18:20
Forum: Projects
Topic: FancyMines (minesweeper clone)
Replies: 11
Views: 2060

Well, I played it today a bit, and it does not seem to have automatic mine reconfiguration... sometimes there is just no way to proceed without taking a chance. Yup, taking chance is part of the game! :) It doesn't have the right+left click combo-click like Minesweeper does either, making the game ...
by Fox
Oct 07, 2010 6:46
Forum: Beginners
Topic: How to optimize a big SELECT CASE statement?
Replies: 19
Views: 2143

Richard wrote:@Fox. I hate to ask the obvious but, what microprocessor are you are emulating?


I am emulating a slightly modified version of a Zilog80 CPU :)
It's for my GameBoy emulator (I posted a note on the forum about my zBoy project a month ago).
by Fox
Oct 06, 2010 11:19
Forum: Beginners
Topic: How to optimize a big SELECT CASE statement?
Replies: 19
Views: 2143

Note that usually the individual bits in an opcode indicate generic instructions. E.g., some bits will indicate ADD, SUB, JUMP, etc, some will indicate register-to-register, register to/from memory, length of operands. Whether detecting this would make your life easier I don't know. Yeah, I know ab...
by Fox
Oct 06, 2010 6:54
Forum: Beginners
Topic: How to optimize a big SELECT CASE statement?
Replies: 19
Views: 2143

Hello, Thank you to all of you who participated to this thread, I'm amazed by the number of replies, and by their quality input! :) You might be better restricting your Select Case to the first byte. Then looking at the structure of the op-code and following a similar decode tree to the native proce...
by Fox
Oct 05, 2010 14:00
Forum: Beginners
Topic: How to optimize a big SELECT CASE statement?
Replies: 19
Views: 2143

For emulator opcodes (since they are constants) you can use: select case const I don't knew until now about this specific "AS CONST" form of SELECT CASE. Thanks for the info! I looked into the FB manual, and this feature is clearly explained. I guess I should have looked into the documentation :-P ...
by Fox
Oct 05, 2010 12:48
Forum: Beginners
Topic: How to optimize a big SELECT CASE statement?
Replies: 19
Views: 2143

How to optimize a big SELECT CASE statement?

Hi! I am writing a program where I am using a huge SELECT CASE statement (with over 500 CASEs). I read that some compilers (like C) are optimizing this using something called a "jump table" (whatever it means). Is FreeBASIC doing any optimization job on such big SELECT CASE? If not, how could I manu...
by Fox
Oct 02, 2010 18:22
Forum: Projects
Topic: FancyMines (minesweeper clone)
Replies: 11
Views: 2060

* Not sure I like the color scheme... is it modifiable? Nope, sorry. There are actually two themes in the game, but I used the same color scheme for both... * The thing I hate about Minesweeper is that most of the Expert maps require guessing. It would be nice to have an option that made it impossi...
by Fox
Oct 02, 2010 9:21
Forum: Projects
Topic: FancyMines (minesweeper clone)
Replies: 11
Views: 2060

FancyMines (minesweeper clone)

Hello,

I wrote I little game for fun. This game is called "FancyMines" and is, in fact, a minesweeper-like game.

Compiled for Windows, Linux and DOS.

http://www.viste-family.net/mateusz/software/fmines/
by Fox
Sep 16, 2010 16:38
Forum: Projects
Topic: zBoy - A GameBoy emulator
Replies: 13
Views: 3746

You have a debug version of No$?!!! You're one lucky sod! I'm jealous. No need to be. Read what follows. He didn't say he BOUGHT it... :) Nope, I definitely not bought it... o.o he borrowed it from his programming Aunt 100010111 ...nor I borrowed it from any relative of mine. You all seem to be una...
by Fox
Sep 14, 2010 16:58
Forum: Projects
Topic: zBoy - A GameBoy emulator
Replies: 13
Views: 3746

Do you mean to say you're using random numbers (which translate to valid CPU opcodes) to test your virtual CPU? No :) I wrote a little program, which knows many opcodes, and makes a valid GameBoy ROM using thousands of randomly chosen opcodes (with appropriate parameters to every opcode). I helped ...
by Fox
Sep 10, 2010 13:50
Forum: Projects
Topic: zBoy - A GameBoy emulator
Replies: 13
Views: 3746

Hi! I must admit that I am somewhat stuck right now with my GameBoy emulation project :-/ In fact, I'm pretty sure that my Zilog (CPU) emulation is buggy, because some games that should work, doesn't. Debugging the CPU step by step is a real pain in the **s, as there are several thousands of instruc...
by Fox
Sep 03, 2010 17:48
Forum: Projects
Topic: zBoy - A GameBoy emulator
Replies: 13
Views: 3746

And a Z80 emulator could also be used for other models (like ZX Spectrum)! Well, in fact, the GameBoy doesn't come with a real Z80, it's a specific Z80-alike CPU, therefore the emulation CPU core won't be usefull in any other Z80-based project, as this is technically not a Z80 :) I uploaded the Lin...
by Fox
Sep 02, 2010 17:38
Forum: Projects
Topic: zBoy - A GameBoy emulator
Replies: 13
Views: 3746

zBoy - A GameBoy emulator

Hi there! Just a quick note to say that I started a GameBoy emulator written in FreeBASIC! :) The emulator is not in any useable state yet, it partially emulates the Zilog Z80 CPU, some I/O routines, and some basic GameBoy stuff. Here's a quick description of my emulator project: http://www.viste-fa...

Go to advanced search