-
Help with random numbers......Hi all, wonder if anyone can help me... sort of a novice here ... I have been trying to write a simple ish basic program to compare random sets of n…
... an example of using a recursive function to do the duplicate ... -
Any ideas on how to solve this equation?If I have three numbers 10:A:B where A & B are equal +ve integers <10, what formula could I apply to pairs of numbers (A,10) or (10,B) such that the …
... try and develop a single recursive DEF FN which could do ... -
numbers to binaryHi everyone, I have looked through the manual and have found nothing. How do you change a number to binary easily? I know you can go binary to decim…
... have to say that your recursive definition i very very interesting ... -
numbers to binaryHi everyone, I have looked through the manual and have found nothing. How do you change a number to binary easily? I know you can go binary to decim…
... have to say that your recursive definition i very very interesting ... -
INSTR function...Hi Folks, Another little program that people might find useful: [CODE]100 DIM i(4) 110 LET a$="This is some sample text" 120 LET b$="text" 130 GO S…
LOL - thanks Crisis but I will stick with good old BASin. It delivers everything I need and I can live without recursive DEF FN. ;)
Paddy -
FN nesting error?While playing with FN functions that call assembly, I've found something weird. Check out this code: [code]10 DEF FN f(a,b)=a+b 20 PRINT FN f(FN f(…
I agree with McLeods explanation. An inner FN with a different name has a private parking place and does not need the hidden storage in the same DEF FN statement. Did known recursive functions escape from this by having the inner FN's as the first element? -
AND,XOR,OR,BIT,RES,SET,CPL,NEG,RLC,RRC,SLA,SRL,RL, RR,SRA for BASICAs this was drifting away from the original INKEY$ thread I thought that I'd create a new one. So here's a routine to provide all of the above mentio…
... be substantially reorganised so that recursive calls kept the operators in ... "call EX1NUM", so that any recursive calls will build up a ... -
Nightime Adventures :)Last night I stumbled upon a bloke trying to tip an entire bag of cement down the outside toilet of a pub. He scarpered pretty quick across the car…
... realise you're in a recursive dream you start looking for ... -
Nightime Adventures :)Last night I stumbled upon a bloke trying to tip an entire bag of cement down the outside toilet of a pub. He scarpered pretty quick across the car…
... realise you're in a recursive dream you start looking for ... -
Nightime Adventures :)Last night I stumbled upon a bloke trying to tip an entire bag of cement down the outside toilet of a pub. He scarpered pretty quick across the car…
... realise you're in a recursive dream you start looking for ... -
New compression method: Exomizer 2After I finished working on optimizing aPLib's decoder, I was told that pucrunch did compress better, and while looking for info about pucrunch (it t…
... return (from possible many subsequent recursive calls) do the same with ... -
How to safely maximise available memoryHi All, I'm toying with an idea that will require I have as much memory available as possible. I'm a little embarrassed I have to ask this tbh. As…
256 bytes are more than enough. Even for a C program, and I assume you are coding in assembly, so unless you are doing some crazy recursive stuff, 256 bytes is plenty for a stack. -
How to safely maximise available memoryHi All, I'm toying with an idea that will require I have as much memory available as possible. I'm a little embarrassed I have to ask this tbh. As…
... as I'm doing nothing recursive or fruity (at least I ... -
stuck on recursive functionI want this function to PEEK 'l' bytes from memory starting at 's' and return them as a string, but however much I fiddle about with quoting and pare…
Glad you got it sorted out (and I wouldn't have been much help to be honest), but I have to say that I thought the thread title "stuck on recursive function" was sort of a subtle joke? -
stuck on recursive functionI want this function to PEEK 'l' bytes from memory starting at 's' and return them as a string, but however much I fiddle about with quoting and pare…
... solution for those interested. A recursive function needs an evaluating bit ... problem I have with constructing recursive functions is being able to ... ... Of course, even when a recursive function is defined correctly it ... -
those darned recursive functions againI've been stuck on this one all evening. I want to dump out some memory in binary to debug a program. I've got a simple mod 2 division loop to do tha…
... /> What I need is a recursive DEF FN visualisation utility, which ... -
those darned recursive functions againI've been stuck on this one all evening. I want to dump out some memory in binary to debug a program. I've got a simple mod 2 division loop to do tha…
... /> What I need is a recursive DEF FN visualisation utility, which ... -
those darned recursive functions againI've been stuck on this one all evening. I want to dump out some memory in binary to debug a program. I've got a simple mod 2 division loop to do tha…
... should be handy for debugging recursive DEF FNs. -
Keyboard problem...Hi Folks, I have hit a problem in MRT and I cannot see how to get around it. Please allow me to explain. I have a list of items from which one can…
... impossible to use nested or recursive FNs - and using a bunch ... -
NEW Jonathan Cauldwell release MORE TEA VICAR? - 30th ANNIVERSARY GAMEThe long awaited Jonathan Cauldwell game MORE TEA VICAR? cassette version is released today, on the 30th birthday of the Speccy. Available from the …
Looks like Spin 0.7 messing about again. If ULA+ is turned on it goes a bit funny. Also if the keystick is set to one of the Sinclair ports I get a recursive error dialog.
Trying it with all those turned off seems to work. -
Spectrum monopoly boardSifting through the scraps recently of ZXF #12, which never got past the first few pages, I came across a Spectrum monopoly board I'd started designi…
... ... but didn't want the recursive loop police coming after me! -
Machine Code Routine of the weekHow about a thread that has a routine each week that is in [B]assembly language[/B] and is also described in great detail what the hell is going on …
... n). Only four bytes per recursive iteration is reserved on the ... -
GUI/OS for the Spectrum?Hi, Is anybody working on a WIMP/GUI system for the Spec? Is there anything current out there? [url]http://snakeoillabs.com/wordpress/2005/10/30/8…
... is concerned. But basically the recursive approach is the same. I ... -
z88dk SP1 - any internal oddities?I'm just wondering if anyone knows if the Z88DK's spritelib SP1 has any oddities inside, for instance relying on specific timings, undocumented instr…
... a few places too. A recursive cat*|grep on the sp1 ... -
Cricket: Duckworth/Lewis CalculatorIdeal for any one-day cricket match which uses the Duckworth/Lewis method to calculate the target score if there is an interruption to play. The alg…
... use it.
its not recursive , or i really mis something ... -
Project on ZX Spectrum in UniversityHi everyone, I am Max, student of media studies in berlin, and I have to do a little project on the spectrum. I am working on a sinclair zx spectrum…
... to write certain forms of recursive function. For example, this function ... -
calculator and sinusok, look at the Sysel's routine: [PHP]3 5b00 *s 4 5b00 tabsin = #7000 03 mksin 19.11.1995 Busy soft …
... self-modifying code and a recursive function to boot.
[code ...