Search found 744 matches

by ketmar
Sat Mar 30, 2024 6:10 pm
Forum: Showcase your work!
Topic: Abersoft fig-Forth Recompiled
Replies: 109
Views: 3889

Re: Abersoft fig-Forth Recompiled

funny, that's exactly how they are defined:

Code: Select all

: <=  ( a b -- a<=b? )  > NOT ;
: >=  ( a b -- a>=b? )  < NOT ;
by ketmar
Sat Mar 30, 2024 5:04 pm
Forum: Showcase your work!
Topic: Abersoft fig-Forth Recompiled
Replies: 109
Views: 3889

Re: Abersoft fig-Forth Recompiled

flange , thank you for your support! yep, "advanced" comparisons are not properly tested yet, thank you. they weren't in the original, and i wrote the code in "blind mode", just to have something there. ;-) as for not popular language… i am using x86 Forth system on daily basis ...
by ketmar
Sat Mar 30, 2024 3:39 pm
Forum: Showcase your work!
Topic: Abersoft fig-Forth Recompiled
Replies: 109
Views: 3889

Re: Abersoft fig-Forth Recompiled

by the way. WIP version to play with: download .TAPs . WARNING! this is NOT final! it should work, but there may (and will) be some bugs. there are 3 .TAP versions, all with demo game. WARNING! demo game works only in 32cols mode. to load demo game, use: "LOADT 1 LOAD" source code will be ...
by ketmar
Sat Mar 30, 2024 3:12 pm
Forum: Showcase your work!
Topic: Abersoft fig-Forth Recompiled
Replies: 109
Views: 3889

Re: Abersoft fig-Forth Recompiled

also, there will be a target cross-compiler which creates "turnkey" apps, omiting all headers, and all unused words. but you'll need x86 GNU/Linux to use it.
by ketmar
Sat Mar 30, 2024 3:08 pm
Forum: Showcase your work!
Topic: Abersoft fig-Forth Recompiled
Replies: 109
Views: 3889

Re: Abersoft fig-Forth Recompiled

nope, "main system size" is total size (bad description, i know ;-). 16 kb with all bells and whistles. can be much smaller if various optional parts are turned off. p.s.: note that even with RAM-DISC you'll have ~13 kb for your code (this is about as much as the original Aberforth had). a...
by ketmar
Sat Mar 30, 2024 1:07 pm
Forum: Showcase your work!
Topic: Abersoft fig-Forth Recompiled
Replies: 109
Views: 3889

Re: Abersoft fig-Forth Recompiled

just4fun, some current system stats. build options: threaded code type: ITC header format: new branch offsets: absolute optimise by: speed print driver: 64 columns CLIT/BLIT: enabled 16-bit mul/div: slow bit shifts: disabled extra block words: disabled editor words: disabled fullscreen editor: enabl...
by ketmar
Fri Mar 29, 2024 12:28 am
Forum: Showcase your work!
Topic: Abersoft fig-Forth Recompiled
Replies: 109
Views: 3889

Re: Abersoft fig-Forth Recompiled

hm. i decompiled Forth part of White Lightning, and it looks quite interesting. the usual fig model code is intact (of course), along with several standard fig inefficiencies. but the added code looks way more interesting. for exampe: it contains two "AT" implementations, absolutely identi...
by ketmar
Thu Mar 28, 2024 8:24 pm
Forum: Showcase your work!
Topic: Abersoft fig-Forth Recompiled
Replies: 109
Views: 3889

Re: Abersoft fig-Forth Recompiled

fun fact: for some reason White Lightning has around 40 hidden words. they are not linked to any vocabulary, but have valid headers and names (and they are referenced from other, visible words). it looks like that system wasn't cross-compiled from some asm source code, but created in several stages....
by ketmar
Thu Mar 28, 2024 3:48 pm
Forum: Showcase your work!
Topic: Abersoft fig-Forth Recompiled
Replies: 109
Views: 3889

Re: Abersoft fig-Forth Recompiled

ported ROM floating point library from dsForth. for ~1KB of code you'll have full floating point support, backed by ROM calculator. because why not? ;-)

i know, i know, Chuck Moore said that floating point math is for wimps. but hey, i don't have to write my own FP code in asm anyway! ;-)
by ketmar
Thu Mar 28, 2024 12:28 am
Forum: Showcase your work!
Topic: Abersoft fig-Forth Recompiled
Replies: 109
Views: 3889

Re: Abersoft fig-Forth Recompiled

It'll be cool to see the example game. it is the one supplied with Mastertronic re-release. that tape contains RAM-DISC image, you can load it with "LOADT", and then use "1 LOAD" to load the game. but beware: the game completely sux. ;-) So if i read the manual to fig forth I wo...
by ketmar
Wed Mar 27, 2024 4:49 pm
Forum: Showcase your work!
Topic: Abersoft fig-Forth Recompiled
Replies: 109
Views: 3889

Re: Abersoft fig-Forth Recompiled

i had to look at (and edit) the sample game. standard line editor sux, so i wrote the fullscreen one. and implemented 64 columns print driver for it. ;-) https://files.catbox.moe/xxnhla.png the editor works in any mode, though (32, 42, 64). it has line yank/insert, and nice incremental search. by th...
by ketmar
Mon Mar 25, 2024 8:22 pm
Forum: Showcase your work!
Topic: Abersoft fig-Forth Recompiled
Replies: 109
Views: 3889

Re: Abersoft fig-Forth Recompiled

i am preparing poc v2, btw, with many decompilation bugs fixed. i managed to cut demo game compiling time from ~40 seconds to ~20 seconds. the change is very simple: i put LFA field before NFA. i don't know why Bill Ragsdale decided to organize word headers this way, but the effect is that "(FI...
by ketmar
Mon Mar 25, 2024 9:00 am
Forum: Games/Software
Topic: Devfinitive Edition (Steve Crow): vote
Replies: 28
Views: 1769

Re: Devfinitive Edition (Steve Crow): vote

it is so sad to see poor snake having no votes at all… i'll prolly change mine now.
by ketmar
Sun Mar 24, 2024 10:37 pm
Forum: Programming
Topic: Forth compiler for ZX
Replies: 67
Views: 3150

Re: Forth compiler for ZX

several Forth CPUs had various interesting… solutions, including minimalistic instruction sets, superscalar CPUs, VLIW CPUs… and most of them are even more minimalistic than minimalistic RISCs! ;-)
by ketmar
Sun Mar 24, 2024 6:26 pm
Forum: Showcase your work!
Topic: Abersoft fig-Forth Recompiled
Replies: 109
Views: 3889

Abersoft fig-Forth Recompiled

as i played with AberForth , i also created Yet Another decompiled version of it. there were other decompiled versions, but mine has something new to offer. ;-) * rebased to $6000, so it can be used with TR-DOS (no TR-DOS support included yet). * removed some unused FIG-Forth parts ("MON",...
by ketmar
Sun Mar 24, 2024 1:47 pm
Forum: Games/Software
Topic: Devfinitive Edition (Steve Crow): vote
Replies: 28
Views: 1769

Re: Devfinitive Edition (Steve Crow): vote

Starquake looks like a definitive winner here. heh, i once remembered the whole map, along with teleport keywords…
by ketmar
Sun Mar 24, 2024 1:13 pm
Forum: Programming
Topic: Forth compiler for ZX
Replies: 67
Views: 3150

Re: Forth compiler for ZX

I didn't think of calling "stc-to-dstack" and calling "stc-to-rstack" to switch SP contents. When I initially tried different variants of how to use SP, I was told that changing SP is not worth it. it doesn't worth it with the traditional STC code. but Succubus does very aggress...
by ketmar
Sun Mar 24, 2024 7:28 am
Forum: Games/Software
Topic: Impossible games...
Replies: 24
Views: 1466

Re: Impossible games...

Morkin wrote: Mon Mar 18, 2024 3:35 pm Two words:

Mutan Zone
hey, spanish games don't count, nobody can beat The Spanish Inquisition!

p.s.: i did Freddy Hadest 1 and Game Over 1 without cheats. but it was accidental.
by ketmar
Sun Mar 24, 2024 7:23 am
Forum: Preservation
Topic: Fake history
Replies: 16
Views: 1257

Re: Fake history

i bet that the only game that may pass is a crap one. prolly even in BASIC. and there is no reason to do it, because it won't be a "hidden gem", people will barely notice. the thing is that it's not so hard to spot modern games disguised as old ones. graphical style, programming style, all...
by ketmar
Sat Mar 23, 2024 9:18 am
Forum: Programming
Topic: Forth compiler for ZX
Replies: 67
Views: 3150

Re: Forth compiler for ZX

And I solved your code for days. this is because you had tried to decipher the output of highly optimising compiler. take GCC -O3 output, for example, and try to "decompile" it back to C code. it will be very hard to do, because the compiler transformed the original code into something ba...
by ketmar
Sat Mar 23, 2024 8:44 am
Forum: Programming
Topic: Forth compiler for ZX
Replies: 67
Views: 3150

Re: Forth compiler for ZX

I've been trying for days (!!!) to understand that code. ah, it's mostly straightforward. i omited some helper routines, tho. You don't use do..loop loops, so I replaced them with the closest equivalent, namely begin..while..repeat and begin..until yeah, i am not a big fan of DO/FOR, and sometimes ...
by ketmar
Fri Mar 22, 2024 12:16 pm
Forum: Programming
Topic: Machine Code: Moving from Attribute scrolling to pixel scrolling
Replies: 33
Views: 1623

Re: Machine Code: Moving from Attribute scrolling to pixel scrolling

by the way, it is possible to do this (copy the whole screen in one frame) on Pentagon. it has slightly more tstates per frame, and no wait states. but you have to load values directly into registers in blit routine, so drawing to such backbuffer is a PITA, and will kill the performance anyway. but ...
by ketmar
Fri Mar 22, 2024 8:38 am
Forum: Programming
Topic: Machine Code: Moving from Attribute scrolling to pixel scrolling
Replies: 33
Views: 1623

Re: Machine Code: Moving from Attribute scrolling to pixel scrolling

eh. just take a look at Firefly. 8-direction scrolling (actually, there is no "scrolling" there, the engine can draw the map from the arbitrary coordinates). 25 FPS, JIT-compiled blitter, and many, many different maps, all in 48k. i once extracted that engine and turned it into reusable, w...
by ketmar
Thu Mar 21, 2024 5:47 pm
Forum: Programming
Topic: Machine Code: Moving from Attribute scrolling to pixel scrolling
Replies: 33
Views: 1623

Re: Machine Code: Moving from Attribute scrolling to pixel scrolling

yep, i agree: drawing behind the raster is way easier. you'll have ~14K tstates to prepare: jit-compile your render code, sort sprites, play some music, and so on. and then you can render everything without worrying about raster at all. even if your render code will take more than 69K tstates, it do...
by ketmar
Thu Mar 21, 2024 11:02 am
Forum: Programming
Topic: Machine Code: Moving from Attribute scrolling to pixel scrolling
Replies: 33
Views: 1623

Re: Machine Code: Moving from Attribute scrolling to pixel scrolling

btw. if you are scrolling by 8 pixels a time, and you see attribute flicker, then you need to rewrite your scoll routines. do not scroll attrs and gfx separately: copy one char, and then immediately copy its attribute. that's if i understood you right.