Search found 711 matches
- Fri Oct 27, 2023 11:47 am
- Forum: Brand new software!
- Topic: XT-Engine: small, but powerful platform game engine in asm
- Replies: 129
- Views: 5545
Re: XT-Engine: small, but powerful platform game engine in asm
yes, exactly this. end user can write code in Z80 asm, in AGD-like, or in any mix of both, and use my UrAsm to compile it. most users will never ever know that there is a Forth system inside.
- Thu Oct 26, 2023 9:24 pm
- Forum: Brand new software!
- Topic: XT-Engine: small, but powerful platform game engine in asm
- Replies: 129
- Views: 5545
Re: XT-Engine: small, but powerful platform game engine in asm
But I guess, you want to make sothing more, an engine - something resuable that other people could use too. In such case you must remember to make it friendly. If you make just a game, then your code may be ugly, it will be enough if you are the only man in the world who can understand it ;) But in...
- Thu Oct 26, 2023 5:56 pm
- Forum: Brand new software!
- Topic: XT-Engine: small, but powerful platform game engine in asm
- Replies: 129
- Views: 5545
Re: XT-Engine: small, but powerful platform game engine in asm
Any chance that we'll see this engine soon in action? :) ah, and new XTE demo is being developed right now. it will be small, but fully featured and beatable game, not just some room with random sprites thrown in. that's why i temporarily switched the focus: i need some new dev tools to code this d...
- Thu Oct 26, 2023 5:44 pm
- Forum: Brand new software!
- Topic: XT-Engine: small, but powerful platform game engine in asm
- Replies: 129
- Views: 5545
Re: XT-Engine: small, but powerful platform game engine in asm
please, just remove the download link for now, and replace it with something like "COMING SOON". XTE1 is not developed anymore, and XTE2 doesn't have a real demo yet. i'll PM you when it will be ready. thank you! ah, btw. please, put XTE source code repository link there: http://ketmar.no-...
- Thu Oct 26, 2023 4:21 pm
- Forum: Programming
- Topic: Learning Forth
- Replies: 5
- Views: 233
Re: Learning Forth
you need to learn the language itself first. there is excellent Leo Brodie book , for example. it is completely free, and is one of the best Forth books available. after you'll become familiar with the language itself, you will understand how to do what you want to do, and how to do it on different ...
- Thu Oct 26, 2023 4:15 pm
- Forum: Brand new software!
- Topic: XT-Engine: small, but powerful platform game engine in asm
- Replies: 129
- Views: 5545
Re: XT-Engine: small, but powerful platform game engine in asm
Any chance that we'll see this engine soon in action? :) it is simply new UrAsm version, which is used to compile Z80 assembler source. of course, you'll see it used with the next XTE tech demo source code. because this is what you'll need to build the code. ;-) otherwise, it is simply Yet Another ...
- Wed Oct 25, 2023 3:30 pm
- Forum: Brand new software!
- Topic: XT-Engine: small, but powerful platform game engine in asm
- Replies: 129
- Views: 5545
Re: XT-Engine: small, but powerful platform game engine in asm
it is related, so here. ;-) new UrAsm engine is almost ready. it is one-pass, writen completely in Forth, and succesfully assembled several samples (including label resolution). so, UrForth is the host app now, and z80 asm is just a loadable module. Just As Planned! ;-) of course, this new asm engin...
- Tue Oct 24, 2023 8:47 am
- Forum: Programming
- Topic: Forth - better than BASIC?
- Replies: 18
- Views: 300
Re: Forth - better than BASIC?
to not spam XTE topic, i will spam here instead. ;-) as new UrAsm is one pass, i need some way to postpone evaluation of expressions with yet unknown labels. it can be done in several ways: by recording fixup info (labels with associated operators), by simply saving a string and re-evaluating it lat...
- Sat Oct 21, 2023 5:41 pm
- Forum: Programming
- Topic: Forth - better than BASIC?
- Replies: 18
- Views: 300
Re: Forth - better than BASIC?
templates are basically the total opposite of effectiveness. ;-) or you'll get a code which nobody (including the author) can read. in D i can use templates with static ifs to generate almost optimal code, and it will be readable. in C++ with its SFINAE it is simply not possible. besides, using STL ...
- Sat Oct 21, 2023 5:19 pm
- Forum: Programming
- Topic: Forth - better than BASIC?
- Replies: 18
- Views: 300
- Sat Oct 21, 2023 2:33 pm
- Forum: Programming
- Topic: Forth - better than BASIC?
- Replies: 18
- Views: 300
Re: XT-Engine: small, but powerful platform game engine in asm
eh, just read recent CVEs for various software. nearly 90% (or even 99%) of them are either buffer overruns, or "use-after-free". that's what we got by using C to write real-world software. p.s.: and by the way. my Doom sourceport has dynamic array class where it is impossible to turn off ...
- Sat Oct 21, 2023 4:09 am
- Forum: Programming
- Topic: Forth - better than BASIC?
- Replies: 18
- Views: 300
Re: XT-Engine: small, but powerful platform game engine in asm
Well I didn't say C was great either, it does it's job though (and is easy to convert to assembly language). a[i++] = b[++i] + c[i++]++; asm, please. ;-) (this is UB, of course, but it is still allowed C syntax. ;-) When we were forced to code in C we didn't like it and wanted to code in C++. Then ...
- Fri Oct 20, 2023 7:19 pm
- Forum: Programming
- Topic: Forth - better than BASIC?
- Replies: 18
- Views: 300
Re: XT-Engine: small, but powerful platform game engine in asm
actually, C is a terrible language; one of the worst i ever had a displeasure to use. and it is sad that it was hyped so much, and that people are still see at as something to draw inspiration from. Modula-2 is much, much better, and Oberon basically closed the need to invent new imperative language...
- Fri Oct 20, 2023 6:06 pm
- Forum: Programming
- Topic: Forth - better than BASIC?
- Replies: 18
- Views: 300
Re: XT-Engine: small, but powerful platform game engine in asm
and i'm not fighting with you too, i'm trying to convert you to Forth zealot. ;-)
- Fri Oct 20, 2023 5:18 pm
- Forum: Programming
- Topic: Forth - better than BASIC?
- Replies: 18
- Views: 300
Re: XT-Engine: small, but powerful platform game engine in asm
basically, everything you described is implemented in that 2K code. and you don't have to do any manual work anymore: the compiler takes care of initialising internal fields for you. you're extending the compiler itself , not bolting some messy macro-magic on top of the existing rigid one. the actua...
- Fri Oct 20, 2023 2:56 pm
- Forum: Programming
- Topic: Forth - better than BASIC?
- Replies: 18
- Views: 300
Re: XT-Engine: small, but powerful platform game engine in asm
just for fun, simple OOP implementation: ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Mini-OOF 12apr98py (Bernd Paysan) ;; https://bernd-paysan.de/mini-oof.html ;; this is small, but fully usable OOP system, with early and late binding ;; see "samples/minioof-demo.f...
- Fri Oct 20, 2023 2:43 pm
- Forum: Programming
- Topic: Forth - better than BASIC?
- Replies: 18
- Views: 300
Re: XT-Engine: small, but powerful platform game engine in asm
Weird programming language, feels a bit like a cult, ha ha yes, it definitely IS a cult! join us, we have reversed polish cookies! ;-) but the video is full of errors. starting from relatively small ones (Forth was NOT invented to control the telescope; at that time Forth system was already quite m...
- Fri Oct 20, 2023 2:23 pm
- Forum: Brand new software!
- Topic: XT-Engine: small, but powerful platform game engine in asm
- Replies: 129
- Views: 5545
- Thu Oct 19, 2023 2:42 pm
- Forum: Brand new software!
- Topic: XT-Engine: small, but powerful platform game engine in asm
- Replies: 129
- Views: 5545
Re: XT-Engine: small, but powerful platform game engine in asm
How does your forth for zx spectrum handle strings? as you want it to. the whole Forth compiler written in Forth itself, there are no hidden parts there. you can use any mechanics you like: inline, tables, 0-terminated, "or 0x80"-terminated, compressed, anything. the system doesn't care, ...
- Thu Oct 19, 2023 5:21 am
- Forum: Programming
- Topic: fprwards and backwards logic in IF statements (in assembly)
- Replies: 54
- Views: 728
Re: fprwards and backwards logic in IF statements (in assembly)
i think that counting t-states is slightly too much for simple rpg-like game. ;-)
- Wed Oct 18, 2023 4:46 pm
- Forum: Brand new software!
- Topic: XT-Engine: small, but powerful platform game engine in asm
- Replies: 129
- Views: 5545
Re: XT-Engine: small, but powerful platform game engine in asm
just4fun (and for debugging too ;-) UrForth/C now passes ANS test suite. it also got line editor, and partially working interactive debugger with breakpoints and single-stepping. now i am very close to my goal of writing a simple compiler (and prolly some other dev tools like room/sprite designer to...
- Wed Oct 18, 2023 4:37 pm
- Forum: Programming
- Topic: fprwards and backwards logic in IF statements (in assembly)
- Replies: 54
- Views: 728
Re: fprwards and backwards logic in IF statements (in assembly)
that's easily solveable: don't work with corporations! ;-) they decided to sell their freedom — ok, it was their choice. i'd quit the moment somebody tell me that i have to abandon my dev tools because something-something-corporate-bullshit. actually, i did that more than once in my life. ;-)
- Wed Oct 18, 2023 3:14 pm
- Forum: Programming
- Topic: fprwards and backwards logic in IF statements (in assembly)
- Replies: 54
- Views: 728
Re: fprwards and backwards logic in IF statements (in assembly)
but why bothering writing C compiler, if there is already Forth compiler? yet if you need it… 'cmon, use Forth! writing compiler in Forth is faster, more fun, and the compiler will be smaller anyway. ;-)
- Wed Oct 18, 2023 2:17 am
- Forum: Programming
- Topic: fprwards and backwards logic in IF statements (in assembly)
- Replies: 54
- Views: 728
Re: fprwards and backwards logic in IF statements (in assembly)
If you want pseudo code of what I'm talking about a good example is just imagine two else statements. If enemy dead MakeExplosion() Else If enemy-hp>1 DamageEnemy() Else Killenemy() Endif Endif tbh, it looks like a perfect fit to write your first compiler. no, really, you don't need hyperoptimised ...
- Wed Oct 18, 2023 2:10 am
- Forum: Programming
- Topic: fprwards and backwards logic in IF statements (in assembly)
- Replies: 54
- Views: 728
Re: fprwards and backwards logic in IF statements (in assembly)
Forth-like is defo the way to go for a simple scripting language. I think Pascal p-code is basically Forth (or was in early implementations?). And I think Java uses a stack machine unlike .NET which uses a register based VM. not any stack machine could be Forth. ;-) Forth has two separate stacks fo...