Search found 40 matches

by IchMagBier
Jan 08, 2019 16:20
Forum: Community Discussion
Topic: Has anyone looked into Jai?
Replies: 17
Views: 915

Re: Has anyone looked into Jai?

what about breaking a call with expressions in the arguments over multiple lines? A compiler usually tokenizes the code instead of directly parsing it. Let's tokenize by hand: testfunc(1,2,3) Would create those tokens: ⋅ SYMBOL "testfunc" ⋅ OPEN PARANTHESIS ⋅ ...
by IchMagBier
Jan 08, 2019 15:22
Forum: Community Discussion
Topic: Has anyone looked into Jai?
Replies: 17
Views: 915

Re: Has anyone looked into Jai?

This looks promising, but ... return x + y + z ; ... why do we need semicolons in 2019? I never got why a programming language would need a semicolon as its line delimiter. Either use 0x0A or simply don't use a line delimiter at all. It's not harder to parse this x=1+2 y=3+4 than this x=1+2; y=3+4; ...
by IchMagBier
Dec 06, 2018 3:57
Forum: Projects
Topic: JIT-Assembler (x86)
Replies: 1
Views: 247

JIT-Assembler (x86)

Hello I was in need of creating executable code during runtime, so I have created this little JIT-Assembler. It allows you to dynamically compile Assembler-code during runtime. This can be used to speed up a scripting language or an emulator. At the moment it only works with 8bit operations, I might...
by IchMagBier
Nov 28, 2018 4:37
Forum: General
Topic: Performance issus with logic simulation
Replies: 2
Views: 169

Re: Performance issus with logic simulation

Well, not sure what I should expect:
Image
Seems to work like in other logic simulators. Same results in BOOLR and simulator.io.
by IchMagBier
Nov 27, 2018 5:21
Forum: General
Topic: Performance issus with logic simulation
Replies: 2
Views: 169

Performance issus with logic simulation

Hello! So after coding my Gameboy emulator, I have decided to go more lowlevel and make a CPU simulator (like https://simulator.io/ for example). Basically I can set my own logic gates and wire them on a big board. So I got AND-gates, OR, XOR, Buttons ... etc. Looks like this: type t_wire as ubyte v...
by IchMagBier
Oct 31, 2018 9:50
Forum: Projects
Topic: Gameboy emulator written in FreeBasic
Replies: 15
Views: 1114

Re: Gameboy emulator written in FreeBasic

https://www.file-upload.net/download-13370787/ohne_gtk.zip.html This is the newest version without GTK. The debug-stuff isn't in the version, neither is palette switching. It is just meant as a workaround until I got fbc and gtk working with wine. You can reenable GTK with the first line in "fb...
by IchMagBier
Oct 30, 2018 8:12
Forum: Projects
Topic: Gameboy emulator written in FreeBasic
Replies: 15
Views: 1114

Re: Gameboy emulator written in FreeBasic

Which macros are incompatible?
I might upload a version without the GTK-features for Windows or DOS this week. I just need it for scaling the window and the file-dialog.
by IchMagBier
Oct 28, 2018 19:23
Forum: Projects
Topic: Gameboy emulator written in FreeBasic
Replies: 15
Views: 1114

Re: Gameboy emulator written in FreeBasic

I might give it a go. Will GTK+3 work? Or is this GTK 2, or...? It's GTK 2. ;) The newest Windows OS I have is NT4 in a VM, sorry. I would love to hear if someone managed to compile it on Windows. I guess it would be an idea to use the WinAPI instead of GTK on Windows. Very interesting. I have just...
by IchMagBier
Oct 21, 2018 6:29
Forum: Projects
Topic: Gameboy emulator written in FreeBasic
Replies: 15
Views: 1114

[Update] Gameboy emulator

See changelog in my first post. The emulator now supports savegames. They are loaded and saved automatically when you start/stop the emulator. I also added support for some Gameboy Color features. Nothing is finished, but i was able to start Pokemon Gold: https://raw.githubusercontent.com/IchMagBier...
by IchMagBier
Oct 19, 2018 17:21
Forum: Projects
Topic: Gameboy emulator written in FreeBasic
Replies: 15
Views: 1114

Re: Gameboy emulator written in FreeBasic

Not bad at all but for the screen output and key input you can use FreeBASIC there is no need for GTK+ for this simple task. By the way I know you used my implementation of a opcode table ;-) I am using GTK for being able to resize the window. I think FreeBasic can't do that on its own. I am using ...
by IchMagBier
Oct 19, 2018 15:58
Forum: Projects
Topic: Gameboy emulator written in FreeBasic
Replies: 15
Views: 1114

Gameboy emulator written in FreeBasic

Hello I wrote a Gameboy emulator with FreeBasic and GTK. It should support most games. I successfully tested: ⋅ Pokemon Red ⋅ Tetris ⋅  Flappyboy ⋅  Blargg's tests Sound isn't supported at the moment. Games are saved and loaded automatically when you start/sto...
by IchMagBier
Oct 17, 2018 18:02
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize
Replies: 360
Views: 16044

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Jan 2019), 300 $ 1st prize

Awesome, would take me too long to translate my compiler to English. Windows shouldn't be a problem, since I try to stick with the rtlib, unless I do network or 3D-stuff. I like beer too. I was working in Croatia a few years ago and we drank a lot of "Vukovarsk". You got some nice beer ove...
by IchMagBier
Oct 17, 2018 16:55
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize
Replies: 360
Views: 16044

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Jan 2019), 300 $ 1st prize

Oh wow, how did I miss this thread? I love the idea of programming contests. I have some questions though. ⋅ Are there any restrictions on the coding style? OOP, GOTO, language of comments etc. ⋅ Is inline-ASM allowed? ⋅ Does it have to compile on Win and/or Linux (or D...
by IchMagBier
Oct 07, 2018 9:36
Forum: Tips and Tricks
Topic: Simple shared memory [Linux]
Replies: 6
Views: 403

Re: Simple shared memory [Linux]

Why don't you use the libc functions? I didn't use header files, because I couldn't find any and I didn't want to translate the C-headers. I guess I was lazy. :p I also don't like using more libraries than necessary, so I can keep my binary small. You use shmget, while I use mmap, which is more &qu...
by IchMagBier
Oct 07, 2018 5:12
Forum: Tips and Tricks
Topic: Simple shared memory [Linux]
Replies: 6
Views: 403

Simple shared memory [Linux]

Good morning my friends I wrote a simple function, which allows two or more programs to share a memory buffer. This can be quite useful for interprocess communication. For example you have one program which generates data and another program which processes it. It can be used like this: 'program1.ba...

Go to advanced search