Search found 216 matches

by C.Born
Thu Apr 18, 2024 11:05 pm
Forum: Programming
Topic: starting with elias-gamma
Replies: 13
Views: 400

Re: starting with elias-gamma

even so, it will probably take a VERY long time to run. I don't think that's a good idea... waiting 5-6 times for a tapeloading error on a full 48k program like WSHAS thats 30-45 minutes life time, waiting for a 5 ball tictac movie takes 24h rendering, for about 2 seconds zx cpu time. ONCE zx0 is m...
by C.Born
Thu Apr 18, 2024 4:27 pm
Forum: Programming
Topic: starting with elias-gamma
Replies: 13
Views: 400

Re: starting with elias-gamma

ok just for fun, some visuals 3 DEF FN b$(d)=VAL$ ((CHR$ 193+"d" AND d<=1)+(("FN b$(INT (d/2))+"+CHR$ 193+STR$ ((d/2)<>INT (d/2))) AND d>1)) 5 DEF FN e$(a)="000000000000000"( TO LEN FN b$(a)-1)+FN b$(a) 7 DEF FN b(a$)=VAL (CHR$ 196+a$) 10 DEF FN a(a)=PEEK a+256*PEEK (a+...
by C.Born
Thu Apr 18, 2024 3:36 pm
Forum: Programming
Topic: starting with elias-gamma
Replies: 13
Views: 400

Re: starting with elias-gamma

unwrapping while saving the elias-gamma-bitstring in basic only, but now i know what i should want it looks as clumbsy as it is ... 3 DEF FN b$(d)=VAL$ ((CHR$ 193+"d" AND d<=1)+(("FN b$(INT (d/2))+"+CHR$ 193+STR$ ((d/2)<>INT (d/2))) AND d>1)) 5 DEF FN e$(a)="000000000000000&...
by C.Born
Thu Apr 18, 2024 2:39 pm
Forum: Programming
Topic: starting with elias-gamma
Replies: 13
Views: 400

Re: starting with elias-gamma

including "unwrapping" give some 16bit values and CLOSE with 0 or bigger then 65535 then it SHOULD give back the correct nummbers just a test like others :roll: 3 DEF FN b$(d)=VAL$ ((CHR$ 193+"d" AND d<=1)+(("FN b$(INT (d/2))+"+CHR$ 193+STR$ ((d/2)<>INT (d/2))) AND d>1)...
by C.Born
Thu Apr 18, 2024 1:48 pm
Forum: Programming
Topic: starting with elias-gamma
Replies: 13
Views: 400

Re: starting with elias-gamma

a 16bit basic example 3 DEF FN b$(d)=VAL$ ((CHR$ 193+"d" AND d<=1)+(("FN b$(INT (d/2))+"+CHR$ 193+STR$ ((d/2)<>INT (d/2))) AND d>1)) 5 DEF FN e$(a)="000000000000000"( TO LEN FN b$(a)-1)+FN b$(a) 7 DEF FN b(a$)=VAL (CHR$ 196+a$) 10 DEF FN a(a)=PEEK a+256*PEEK (a+1): DEF ...
by C.Born
Thu Apr 18, 2024 12:10 pm
Forum: Programming
Topic: starting with elias-gamma
Replies: 13
Views: 400

Re: starting with elias-gamma

thinking out loud: elias-gamma (or elias-gamma-string) is a bitstring of ANY length and ANY amount off numbers since its unkown what length next number will have its max number is SET by a series of zero's that realy have to be counted that is the gamma point '1' from and including there you take TH...
by C.Born
Tue Apr 16, 2024 10:44 pm
Forum: Programming
Topic: starting with elias-gamma
Replies: 13
Views: 400

Re: starting with elias-gamma

so, you only have to set (hl),0 inc hl (hl),elias and virtualy you are done if you count that 2^b bit i did not test this one but i want to know if its use-able for an zx0 ON Z80 machine its stupid, i warn you and in the C the elias is "optimised " directly after use. its feels like b64, s...
by C.Born
Sun Apr 14, 2024 11:32 pm
Forum: Programming
Topic: starting with elias-gamma
Replies: 13
Views: 400

Re: starting with elias-gamma

So, there is NO elias-gamma NULL , took me some time to realise that one ... :D :P :shock: :mrgreen: :roll: :evil: :?: :!: now its 98,7 % or some but it should write the encoding correct in mem, which is actualy just a shift with 8 bytes inside 16 bytes, so why dont i do that? since i wanted to see ...
by C.Born
Tue Apr 09, 2024 1:52 am
Forum: Programming
Topic: starting with elias-gamma
Replies: 13
Views: 400

Re: starting with elias-gamma

NO IT aint working, yet but its at least working a bit, i had one stupid error , forgot exx hl BUT my basic part has severall QUOTE signs and inside and Token will be written in txt, with bas2tap,zmakebas AND txt2emu, so i quited that for now but i have to make it visual in memory so i will try diff...
by C.Born
Sun Apr 07, 2024 5:46 pm
Forum: Programming
Topic: starting with elias-gamma
Replies: 13
Views: 400

Re: starting with elias-gamma

well i made a crash by overwriting BASIC, but how and why ??? ; use ; eliasg021 ; pasmo -d --tap --name eliasg021 eliasg021.asm eliasg021.tap eliasg021.symbol ; cat elias.tap eliasg021.tap > eliasgamma021.tap ; bas2tap -selias -a10 eliasMCloader.bas elias.tap ; 10 DEF FN b$(d)=VAL$ ((CHR$ 193+"...
by C.Born
Sun Apr 07, 2024 3:42 am
Forum: Programming
Topic: starting with elias-gamma
Replies: 13
Views: 400

starting with elias-gamma

https://en.wikipedia.org/wiki/Elias_gamma_coding 10 DEF FN b$(d)=VAL$ ((CHR$ 193+"d" AND d<=1)+(("FN b$(INT (d/2))+"+CHR$ 193+STR$ ((d/2)<>INT (d/2))) AND d>1)): DEF FN b(a$)=VAL (CHR$ 196+a$) 20 FOR f=0 TO 255 25 LET a$=FN b$(f) 30 PRINT TAB 3-LEN STR$ f;f;" ";a$;TAB 1...
by C.Born
Thu Apr 04, 2024 2:11 pm
Forum: Programming
Topic: Bank switching issue
Replies: 32
Views: 1081

Re: Bank switching issue

Hi wanted to mention "Logic RAM Banks" although you probably solved to problem there are TWO ways off counting the memory banks while they are the same chip https://github.com/ZXSpectrumVault/rom-disassemblies/blob/master/Spectrum%20128K/Spectrum128_ROM0.asm it mentions the difference in a...
by C.Born
Wed Apr 03, 2024 2:28 am
Forum: Programming
Topic: A new data compressor called ZX0
Replies: 284
Views: 20563

Re: A new data compressor called ZX0

nah, it aint cheating when ZX can do it btw, i realized, if zcc is used its better to avoid those IX and IY.. startdef ld hl,(DEF_ADR) ; hl = actual RAM location in BASIC listing at position off the DEF FN ld de,(mode) ld bc,4 add hl,bc ; adres+4 = var f rrc (hl) rlca ld c,8 add hl,bc ; adres+4+8 = ...
by C.Born
Wed Apr 03, 2024 1:56 am
Forum: Programming
Topic: A new data compressor called ZX0
Replies: 284
Views: 20563

Re: A new data compressor called ZX0

Hi how big is the change that zx0 will compress at a z80 machine? zcc DOES compile zcc +zx -vn -zorg0x5f00 zx0.c optimize.c compress.c memory.c -ozx0 -DAMALLOC -lndos -create-app BUT zx0 uses ARG[] in main if zx0.c was written for a zx memory, will the other parts compres? # JUST THEORY PSEUDO CODE ...
by C.Born
Wed Mar 27, 2024 11:15 pm
Forum: Preservation
Topic: How to get data off MGT +D disks
Replies: 6
Views: 240

Re: How to get data off MGT +D disks

A standard USB-floppy probably won’t do, as it doesn’t give low-level enough access to the disk (as far as I understand). afai understand and read an UBS drive is a 9sector per track device while it should be 10 per track. i am not sure since format is a software matter, but modern tech has it own ...
by C.Born
Mon Mar 25, 2024 9:23 pm
Forum: Sinclair Miscellaneous
Topic: The Ballad of Sir Clive
Replies: 4
Views: 247

Re: The Ballad of Sir Clive

cool and disturbing
i realize i have to reconfigure my woot not only with real names, but with real chronos aswell
btw, does it come with lyrics?
by C.Born
Sun Mar 24, 2024 11:33 pm
Forum: Programming
Topic: Machine Code: Moving from Attribute scrolling to pixel scrolling
Replies: 33
Views: 852

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

Forgot to post the link where I got the info about the raster from https://worldofspectrum.org/faq/reference/48kreference.htm i have my own notations, hope it helps a little the IM2 is not needed offcourse ; http://www.worldofspectrum.net/faq/reference/128kreference.htm ; model -128k -timings in T-...
by C.Born
Sat Mar 23, 2024 3:31 pm
Forum: Programming
Topic: bas2tap bug in DEF FN x$()
Replies: 1
Views: 97

bas2tap bug in DEF FN x$()

Hi i have a piece off basic on which bas2tap fails 10 DEF FN D$(a)="HALLO" 20 PRINT FN D$() 30 LET e$=FN d$() it gives an error Desktop/zx/zx/gigaflip$ ./bas2tap DEFtest.bas DEFtest.tap BAS2TAP v2.6 by Martijn van der Heide of ThunderWare Research Center Creating output file DEFtest.tap ER...
by C.Born
Wed Feb 21, 2024 4:43 pm
Forum: Website
Topic: "Sorry but you cannot use search at this time..."
Replies: 16
Views: 521

Re: "Sorry but you cannot use search at this time..."

they have to make a big difference in their approach that litteraly 2 second "delay" couild have been hidden instead off a total block if its introusion by a bot then the 2 sec might be enough to check some double domains perhaps and maybe a small algo that count up wait time instead of ju...
by C.Born
Wed Feb 21, 2024 4:36 pm
Forum: Brand new software!
Topic: Flexuous Avifauna
Replies: 4
Views: 381

Re: Flexuous Avifauna

the example image has a high score offff


30


thats 3 poles indeed
i did 1 and a half, i think to remember :cry:
by C.Born
Tue Feb 20, 2024 1:48 pm
Forum: Website
Topic: "Sorry but you cannot use search at this time..."
Replies: 16
Views: 521

Re: "Sorry but you cannot use search at this time..."

ok, sytems are smarter and smarter, but then still there has to be a clue about that result else there wont be a "next page"
by C.Born
Tue Feb 20, 2024 1:46 pm
Forum: Programming
Topic: ZX BASIC syntax highlighter
Replies: 9
Views: 684

Re: ZX BASIC syntax highlighter

Hi I installed subliemeditor and the 2 sets of highlite testing on a pure basic file it show the line number in BLUE but only up to 999 from 1000 and above they become orange like the INT values is it ment to be that all line numbers are blue then you have a small typo/bug some where i use linux min...
by C.Born
Tue Feb 20, 2024 1:18 pm
Forum: Website
Topic: "Sorry but you cannot use search at this time..."
Replies: 16
Views: 521

Re: "Sorry but you cannot use search at this time..."

i that case can you have a LONGER RSULT PAGE ??? since else its a WASTE of exact that searchTIME you protect so much with 10 PAGES off results the results MUST be found and thus the search already SUCCEEDED !! but there is that anoying script that blocks the content off this ALREADY FOUND RESULT so ...
by C.Born
Fri Feb 16, 2024 1:46 pm
Forum: Graphics
Topic: now i need a picture
Replies: 7
Views: 681

Re: now i need a picture

just an simple update, i included the FASTscreen trick and a litle extra nerve 10 RUN 20: DEF FN p(p)=PEEK p+ 256*PEEK (p+1): DEF FN r()=FN p(23621) 20 RANDOMIZE : BORDER 1: CLEAR 49151: PRINT "Hallo"'"when READY Use 'o' & 'p'"''''"GOTO sets 'NEWPPC' sysvar": LET p=...
by C.Born
Thu Feb 08, 2024 6:20 pm
Forum: Games/Software
Topic: The comp.sys.sinclair Crap Games Competition 2021: 25th edition extravaganza!
Replies: 403
Views: 19930

Re: The comp.sys.sinclair Crap Games Competition 2021: 25th edition extravaganza!

@equinox Because I like truffles.... By priming the system variables: 23662/23663 OLDPPC - Line number to which CONTINUE jumps. 23664 OSPCC - Number within line of statement to which CONTINUE jumps. ...You can use CONTINUE effectively as a GOTO a sub-statement within a line. so 5 print "Hello ...