Search found 86 matches

by mrminecrafttnt
Feb 14, 2016 16:01
Forum: Tips and Tricks
Topic: Developing of an bytecode interpreter in freeBASIC
Replies: 6
Views: 647

Re: Developing of an bytecode interpreter in freeBASIC

srvaldez wrote:you make it seem like child's play, but in order to have a useful byte code interpreter you also need a byte code compiler, which is not a simple matter.

I think i can do it with this design :)
by mrminecrafttnt
Feb 14, 2016 15:36
Forum: Tips and Tricks
Topic: Developing of an bytecode interpreter in freeBASIC
Replies: 6
Views: 647

Developing of an bytecode interpreter in freeBASIC

Hi guys i have juse some time and show you how easy it is to develop an bytecodeinterpreter for emulators, virtualmachines etc. in freebasic Now let's beginn with the mainframe like this: dim as ubyte r0,prgctr,exitflag dim shared as ubyte rom(256) => {0} ' your (256byte) rom is here do select case ...
by mrminecrafttnt
Oct 06, 2015 14:46
Forum: Tips and Tricks
Topic: Challenge: An uncheatable Value (i think)
Replies: 0
Views: 704

Challenge: An uncheatable Value (i think)

Use your cheatengine to cheat this, have fun! :) please compile with -t 2000 and it will work fine. type ac_ubyte_simple dim value2 as ubyte dim value as ubyte dim key2 as ubyte dim key as ubyte dim sabotageflag as ubyte declare sub set(value as ubyte) declare function get as ubyte declare construct...
by mrminecrafttnt
Feb 11, 2015 8:02
Forum: Tips and Tricks
Topic: Some anticheating stuff :)
Replies: 0
Views: 793

Some anticheating stuff :)

type ac_ubyte_simple dim value2 as ubyte dim value as ubyte dim key2 as ubyte dim key as ubyte dim sabotageflag as ubyte declare sub set(value as ubyte) declare function get as ubyte declare constructor end type constructor ac_ubyte_simple this.set 123 if this.get <> (this.value xor this.key) then ...
by mrminecrafttnt
Oct 22, 2014 21:48
Forum: Tips and Tricks
Topic: The heart of a virtual machine / CPU emulator
Replies: 23
Views: 4769

Re: The heart of a virtual machine / CPU emulator

And here is my working CPU / VM / Compiler :D 'I DID IT, A WORKING VM WITH JIT AND A INTREGRADED COMPILER, very fast :D 'Features: '- CPU: ALU(minimalisic), 2 Registers, 24 Opcodes, 8-bit power '- RAM: 1kb RAM (support only for the first 256 bytes yet) '- OPITMATION WITH: INTERNAL JIT COMPILER '- EX...
by mrminecrafttnt
Oct 04, 2014 12:27
Forum: Tips and Tricks
Topic: The heart of a virtual machine / CPU emulator
Replies: 23
Views: 4769

Re: The heart of a virtual machine / CPU emulator

A fully woriking opcode based CPU-emulator template with build in JIT Compiler ;) dim shared ram(255) as ubyte => {&H00} 'write your code here like &H00,&HFE,etc this code will call the opcode sub's very fast engouh ;) sub OPCODE_00 end sub sub OPCODE_01 end sub sub OPCODE_02 end sub sub...
by mrminecrafttnt
Sep 07, 2014 11:08
Forum: Tips and Tricks
Topic: Simplest costum CPU emulator ever
Replies: 0
Views: 650

Simplest costum CPU emulator ever

Hi guy's! This here shows the simplest CPU emulator ever, designed to print "Hello world" and easy to extend :) dim shared as ubyte r1,r2,ram(256) 'specs: 2 register and 256bytes of ram - pure 8bit power :) dim shared as ubyte exitflag,prgctr 'exitflag - allows our cpu to leave the main lo...
by mrminecrafttnt
Apr 21, 2014 19:04
Forum: Tips and Tricks
Topic: A costum VM (44 Opcodes)
Replies: 0
Views: 621

A costum VM (44 Opcodes)

This is system is a costum designed virtual machine and is running in the textmode. Systemspecs: -8-bit power -3 registers, -256 byte ram -44 Opcodes Features: -crash safe -load roms -very easy to debug -romcorrupter to see random glitches (just4fun, disabled) First step you have to build the Hellow...
by mrminecrafttnt
Apr 03, 2013 19:08
Forum: Tips and Tricks
Topic: Retro Videocard Emulation
Replies: 0
Views: 471

Retro Videocard Emulation

40x29 Pixel (scaled on 640x480), 256 Colors, 1230bytes of Ram, fast :) #define true 1 #define false not true ' the videocard driver dim shared as ubyte vram(1230)' 1230 bytes of video ram sub hw_videocard() static as ushort vramptr screenlock vramptr = 0 for vrega as integer = 0 to 40 for vregb as i...
by mrminecrafttnt
Apr 01, 2013 18:37
Forum: Tips and Tricks
Topic: A very simple VM
Replies: 0
Views: 566

A very simple VM

Hello! This is my first self designed VM It is a 8bit system with 2Register and 256byte Ram and it have a very minimalistic Opcode but it sill works! :D 'We defeine the ram dim shared as ubyte RAM(256) ' 256byte of ram 'We define the register (Register A = rega, register B = regb) dim shared as ubyt...
by mrminecrafttnt
Feb 11, 2013 12:26
Forum: Tips and Tricks
Topic: Simple Chat
Replies: 2
Views: 713

Re: SIMPLE CHAT

It help's me so much to understand the winsock, thanks!

Go to advanced search