Search found 251 matches

by C.Born
Sun May 12, 2024 2:56 pm
Forum: Programming
Topic: DEF FN small self test
Replies: 5
Views: 116

Re: DEF FN small self test

at the moment this is the result ; 10 DEF FN a(a,b,c,d,e,f,g,h,i,j)=USR t ; 20 DEF FN a$(a,b,c,d,e,f,g,h,i,j)=STR$ USR t ; 25 DEF FN b$(a$,b,c,d$,e,f,g,h$,i,j)=STR$ USR t ; 30 CLEAR VAL "25499": LET t=VAL "25500": LOAD ""CODE t ; 40 PRINT FN a(1,2,3,4,5,6,7,8,9,0)' ; 50...
by C.Born
Sun May 12, 2024 12:26 pm
Forum: Programming
Topic: DEF FN small self test
Replies: 5
Views: 116

Re: DEF FN small self test

Thank you doctor, i need a prescription for new glasses actualy. i mix up notation the long my mind moves, apperently. i should be more conseqent and then probably have less errors my self. i dont know if eg Tornado handles 'A', i have to start a disk for that. it does not use undocumented code, but...
by C.Born
Sun May 12, 2024 2:27 am
Forum: Programming
Topic: DEF FN small self test
Replies: 5
Views: 116

Re: DEF FN small self test

cp 56 ; 'A'

must be
cp 65 ; 'A'
by C.Born
Sun May 12, 2024 1:44 am
Forum: Website
Topic: download error message while download works
Replies: 0
Views: 29

download error message while download works

Hi
just downloaded Johnny Bravo and have now 3 downloads while the site mentioned "temp ban by overload" or alike ???
while i am just 2 min here and download 1 prog at all
by C.Born
Sat May 11, 2024 11:17 pm
Forum: Brand new software!
Topic: New game: Binary Battle!
Replies: 16
Views: 1028

Re: New game: Binary Battle!

Andre Leao wrote: Wed May 08, 2024 12:18 pm Just brake my record (not using saving states)...
Spoiler
Image
lucky you, i still dint make it despite the buggy keeyz, but i got pretty far already
by C.Born
Sat May 11, 2024 11:14 pm
Forum: Programming
Topic: DEF FN small self test
Replies: 5
Views: 116

DEF FN small self test

Hi its a side project for creating that zx0 in zx itself. if i want to use DEF FN as a subtitue for an C_file on a command line the coding off the DEF FN has to be copied to the C_file this is a start: ; DEF FN small self test ; DEFselftst_030 ; pasmo -d --tap --name DEFselftst DEFselftst_030.asm DE...
by C.Born
Wed May 08, 2024 12:51 am
Forum: Brand new software!
Topic: New game: Binary Battle!
Replies: 16
Views: 1028

Re: New game: Binary Battle!

... Almost everything in the game in randomised. The only fixed thing is the number of levels (5). ... did you try what happens if you move the cursor beside the heatmeter or the coin? i think its a bug beside that virus! the levels keep going up if you click on such a spot like all ascii 128-255 y...
by C.Born
Tue May 07, 2024 12:05 pm
Forum: Brand new software!
Topic: NEW GAME - Shoplifting boy
Replies: 3
Views: 521

Re: NEW GAME - Shoplifting boy

funny game indeed, i had to 'extra advance' it to qaop else my fingers get stuck inbetween the shelfs ... perhaps it can fit a 16k (9k!) if ported to 'pure' zx basic? i like the UDG with the character pointed out, if you mix up the following order it just will set the correct udg, btw "k" ...
by C.Born
Tue May 07, 2024 2:26 am
Forum: Brand new software!
Topic: Subliminal Extacy #6
Replies: 11
Views: 512

Re: Subliminal Extacy #6

i just want to mention to that obsesive guy:
SPECTRUM IS A VERY HEALTHY MACHINE
there are plenty off FRUIT MACHINES available !!!
even some decent 16k versions
but not for that beer program, that has obesitas!
its a 48k only! and even a total fat 128k ONLY
by C.Born
Tue May 07, 2024 12:04 am
Forum: Programming
Topic: starting with elias-gamma
Replies: 45
Views: 1580

Re: starting with elias-gamma

a bit boaring, a stand alone Elis Interlaced Gamma in DEF i keep them separate, thats easier and i wondered about the use. the interlaced gamma is a preparation for the optimisation for the zx0 on zx spectrum. so its STILL mostly a first step of the same elias ; a.d. 2024 Chris Born ; an Elias Gamma...
by C.Born
Mon May 06, 2024 11:52 pm
Forum: Programming
Topic: starting with elias-gamma
Replies: 45
Views: 1580

Re: starting with elias-gamma

No, it uses 16 bits in Elias Gamma coding. ok an PSEUDO attempt for checking the "gamma position" only, it has to start some where ; HL =(destiny), DE =(source), BC =() ; HL' , DE' , BC' ; exx normal =adresses elias16: ld de,(source) ld hl,(destiny) ld a,d ex af,af' ld a,e exx ;alt = valu...
by C.Born
Sun May 05, 2024 1:55 am
Forum: Programming
Topic: starting with elias-gamma
Replies: 45
Views: 1580

Re: starting with elias-gamma

"one step back and shake" :dance made both classic and interlaced as a separate example, later I put them back into 1 big DEF elias. its 95% equal with small akward differences the mirror part is only for easy visual for real use just remove that part, or concider big endian vs little endi...
by C.Born
Tue Apr 30, 2024 2:12 am
Forum: Programming
Topic: starting with elias-gamma
Replies: 45
Views: 1580

Re: starting with elias-gamma

a little more smooth loop now giving data length for the DEF i wonder i i should migrate the loading of the elias source to this loop routine, then the golomb has to be done there to, saving bytes in both included routines, but making them depending, a little. ; a.d. 2024 Chris Born ; an Elias Gamma...
by C.Born
Mon Apr 29, 2024 12:20 pm
Forum: Programming
Topic: starting with elias-gamma
Replies: 45
Views: 1580

Re: starting with elias-gamma

i wrote an DEF FN entry, it works nice with the classic eliasgamma included it needs its own DEF FN statement in basic, ofcourse EliasDEF.bas 1 DEF FN p(a)=PEEK a+256*PEEK (a+SGN PI) 5 DEF FN a(s,d,l,g)=USR el 10 CLEAR VAL "25499": LET el=FN p(VAL "23730")+SGN PI: LOAD "&quo...
by C.Born
Sun Apr 28, 2024 5:03 pm
Forum: Programming
Topic: starting with elias-gamma
Replies: 45
Views: 1580

Re: starting with elias-gamma

first interlaced attempt, seems close but i dont know usr 25648 for mirror bytes on screen ; ElIntGam-005 ; save as ElIntGam.asm to INCLUDE in EliasGammaCode.asm or other loops ; pasmo -d --bin ElIntGam-005.asm ElIntGam-005.bin ElIntGam-005.symbol ; Interlaced Elias-gamma ;https://github.com/einar-s...
by C.Born
Sun Apr 28, 2024 2:02 pm
Forum: Programming
Topic: starting with elias-gamma
Replies: 45
Views: 1580

Re: starting with elias-gamma

There are more options in the Zeta-Xi Code link but uou can ignore them. This table you copied is all you need. Ok, then i need the R1 format up to 8 bits , for now ?zx0 is 8bits only? 0 1 1 1 1 1-2 2-3 3 01x 0x1 3-6 4-7 5 001xx 0x0x1 7-14 8-15 7 0001xxx 0x0x0x1 15-30 16-31 9 00001xxxx 0x0x0x0x1 31...
by C.Born
Sun Apr 28, 2024 12:18 am
Forum: Programming
Topic: starting with elias-gamma
Replies: 45
Views: 1580

Re: starting with elias-gamma

about interlaced eliasgamma is the Zeta-Xi-Code what you refer to? https://github.com/einar-saukas/Zeta-Xi-Code Number N Number N+1 Bits Classic Elias Gamma Code Interlaced Elias Gamma Code 0 1 1 1 1 1-2 2-3 3 01x 0x1 3-6 4-7 5 001xx 0x0x1 7-14 8-15 7 0001xxx 0x0x0x1 15-30 16-31 9 00001xxxx 0x0x0x0x...
by C.Born
Sat Apr 27, 2024 10:47 pm
Forum: Programming
Topic: Simple path finding algorithm in assembler
Replies: 37
Views: 1657

Re: Simple path finding algorithm in assembler

is a game like "Roads of Rome" solvable with your algoritm?
those type off games are rather easy and after every clearing new paths are possible.
by C.Born
Sat Apr 27, 2024 10:35 pm
Forum: Programming
Topic: starting with elias-gamma
Replies: 45
Views: 1580

Re: starting with elias-gamma

i added 1 byte to wipe the old contence of (hl),much better! and changed the label from "notyet" ntyt to "next b" nexb, checkce rlc e rlc c jr nc,nexb ; c/nc from C ld (hl),a ; bits = %00000001 inc hl ; new destiny byte xor a ; ld (hl),a ; wipe old data first nexb djnz bitz
by C.Born
Sat Apr 27, 2024 8:11 pm
Forum: Programming
Topic: starting with elias-gamma
Replies: 45
Views: 1580

Re: starting with elias-gamma

down to 82 bytes for the single eliasgamma ; pasmo -d --bin EliasGamma.asm EliasGamma.bin EliasGamma.symbol ; HL= destiny, DE=source ; needs, Golomb, Bits elias: ld a,(golomb) ld c,a ; c=0 or 1 ld a,(de) ; elias source add a,c jr z,done ; on elias = 0 or golomb=255 (elias254+1) ld b,8 ld c,1 ; gamma...
by C.Born
Sat Apr 27, 2024 4:34 pm
Forum: Programming
Topic: starting with elias-gamma
Replies: 45
Views: 1580

Re: starting with elias-gamma

the pupuse is an pure Z80 eliasgamma and i have to WRITE the final result, aswell , .... one ld (hl),a to few, now repaired and working, pheew ! :roll: ; an elias-gamma format Z80 routine ; DE holds SOURCE, hl holds DESTINY ; LATER to be INCLUDEd as ASM or BIN ; Eliasgammaloop-0076 ; pasmo -d --tapb...
by C.Born
Sat Apr 27, 2024 3:32 pm
Forum: Programming
Topic: starting with elias-gamma
Replies: 45
Views: 1580

Re: starting with elias-gamma

in C you dont have to concider that DEC B does NOT influence the carry
by C.Born
Sat Apr 27, 2024 12:44 am
Forum: Programming
Topic: starting with elias-gamma
Replies: 45
Views: 1580

Re: starting with elias-gamma

I wrote this code in C some time ago: void write_classic_elias_gamma(int value) { int i = 1; while ((i <<= 1) <= value) write_bit(0); while (i >>= 1) write_bit(value & i); } Same algorithm, more user friendly listing: void write_classic_elias_gamma(int value) { int i = 2; while (i <= value) { w...
by C.Born
Tue Apr 23, 2024 9:29 pm
Forum: Programming
Topic: starting with elias-gamma
Replies: 45
Views: 1580

Re: starting with elias-gamma

and back to the board since now i do miss some, but what? source2 defb 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 ; eliasgamma string with 1 to 15 should be 84 bits from which 32 set ; 1 010 011 00100 00101 00110 00111 0001000 0001001 0001010 0001011 0001100 0001101 0001110 0001111 this string is NOT happe...
by C.Born
Tue Apr 23, 2024 8:25 pm
Forum: Programming
Topic: starting with elias-gamma
Replies: 45
Views: 1580

Re: starting with elias-gamma

and 1 bit better, again it stil laks some thing ; an elias-gamma format Z80 routine ; DE holds SOURCE, hl holds DESTINY ; LATER to be INCLUDEd as ASM ; #INCLUDE Elias-0062.asm ; pasmo -d --bin Elias-0062.asm Elias-0062.bin Elias-0062.symbol ; pasmo -d --tapbas --name Elias-0062 Elias-0062.asm Elias-...