-
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…
... /> call EX1NUM ;stack 1st variable
pop af ;A ... /> call EX1NUM ;stack 2nd variable
call FPTOBC ;C ... call FPTOA ;A =1st variable
pop bc ;C ... -
Distinguishing between models?I'm running the risk of being pointed to the faq here, so sorry in advance. Something I'm trying out requires that the program can distinguish betwe…
... whether there is a paging variable, or the differences in some ... -
+3 file list showing header info ?What's the easiest way of getting a catalogue of a (non protected) +3 disk with the file start / length addresses ? :) I did think CAT EXP would do …
... disk with the file start / length addresses ? :)
I did ... need to determine the start / length from the header and that ... -
Issue 2 voltage troubleDear all, I got my hands on an old issue 2 from a friend. Price was close to zero so I did not hesitate to take it. After powering it up I was sur…
... to tune by adjusting the variable resistors and capacitors without any ... -
opening Microdrive cartridgeI've been trying to replace the tiny 'sponge' with variable success. in two tiny tapes it worked but, iirc, they worked even with no sponge at all. I…
... replace the tiny 'sponge' with variable success. in two tiny tapes ... -
Invalid combination of operands and opcodesIt says the error in the title, why is this?? [CODE] ORG 0000 LD HL, 63000 ;LOAD HL WITH STACK LOCATION LD SP, HL ;SET STACK POINTER TO HL LD A, …
... , 3 ;LOAD B WITH LENGTH
CALL ASCII ;PRINT ... 3 ;LOAD B WITH LENGTH
CALL ASCII ;PRINT ... 4 ;LOAD B WITH LENGTH
CALL ASCII ;PRINT ... 4 ;LOAD B WITH LENGTH
CALL ASCII ;PRINT ... 4 ;LOAD B WITH LENGTH
CALL ASCII ;PRINT ... -
SpecBAS 0.718 Now AvailableHi Folks! After an appreciable delay, the latest and (dare I say it?) greatest SpecBAS update is now available. We're moving into modern times with …
... is stored inside a string variable, it can be manipulated just ... call procedures based on a variable's contents.
CALL ... the correct RESULT or RESULT$ variable or things may get weird ... structure members present in that variable, if a structure has been ... -
problem with RND (or maybe INT)I'm using this statement: LET m=(INT (RND*sn)+k1)*k2-k1 to give a pointer m to a 2-byte segment of a string l$. Items k1 & k2 are integer constants…
A z88dk + sp1 demo (with source)Since nowadays people are still wondering about how difficult it is to make something in z88dk, I thought I just put a very simple demo to show how e…
... /> };
// Attach C Variable to data Declared in ASM ...SpecBAS 0.724 Now available!Hi folks - Again, a new SpecBAS for you. Some stunning bugs made their way into the last one, so I had to get a new version out sharpish. And for o…
Hi folks -
Again, a new SpecBAS for you. Some stunning bugs made their way into the last one, so I had to get a new version out sharpish. And for once, you windows folks are at the bleeding edge :)
Anyhoo, new features are few ...storing machine code in BASICA couple of years ago I posted a routine for storing machine code between PROG & VARS, based on an idea in Toni Baker's "Mastering Machine Code". Thi…
... the PROG area, because the variable letter for a$() is encoded ...joining lines of BASICDue to overwhelming demand - well, one demand - well, more of a suggestion, really - here's a routine to join together lines of BASIC. The vertical c…
... hl) ;DE=1st line text length + ENTER
inc ... replace 2nd line number & length bytes
inc hl ; ... bc ;BC=2nd line text length + 4 + ENTER
... add hl,bc ;HL=joined length
ex de,hl< ...SpecBAS 0.730 Now available!Well, I felt I should release SpecBAS as it is right now - my new son has been born (this one survived! \o/ ) and when he comes home I'll have very l…
... 't rely on state or variable information are interpreted at line ...more on storing mazesPrompted by Wookiee's escapades, I've been pondering on how to use DATA statements directly for displaying background graphics, thus avoiding the dup…
... )-m(m,1): REM 'm' length
70 RESTORE base+m ...Generating a constant of 2?Hi Folks, Through "The Wizard of WOS" I learnt that you can generate constants as follows: [B]NOT PI=0 SGN PI=1 INT PI=3[/B] Is there a quick way …
... />
I could use a variable but I have 42 of ...Help needed with a loop counterVariable W counts to 12 then calls a subroutine to move a character, it then resets to zero and starts again. For every 2 moves of that character I …
Variable W counts to 12 then ... to faff about with other variable counters.
Currently it ... based on the current level variable S, but I cant think ...Pip The Pipistrelle[color=red]*COMING SOON*[/color] Pip The Pipistrelle I am going to put all the game details,instructions and story here now and simply update this t…
... am really sorry about the length of this.
The ...University ChallengeNearly two weeks ago Manchester University won the first University Challenge semi-final to get into the upcoming final against Pembroke College, Cam…
... are the values of the variable when the expression is equal ...BIT/RES/SET b,r where b is variableWhat's the best way to use the bit flag group of commands if it's not known in advance which bit should be referenced; ie. where it's dependent upon …
What's the best way to use the bit flag group of commands if it's not known in advance which bit should be referenced; ie. where it's dependent upon a condition which varies during the program? As the bit number has to be explicitly coded in assembler the ...You Tube video problemsHi Peeps I have made a complete speccy gameplay video of pip the pipistrelle for youtube and have encountered a problem,the video is uploading twice …
... uploading twice the size in length because the video is being ... is fine at the original length but in Quicktime player it ... also doubles in length!.
I was wandering if ...Increasing the number of UDGs...Hi Folks, I know by default the Spectrum can have 21 UDGs (48K) and 19 (128K) and that the address of the bit patterns is pointed to by the UDG syst…
... to by the UDG system variable.
Is it possible ...ESXDOS v0.7.4 (bugfix release)Hello, A new version of ESXDOS is now [url=http://www.esxdos.org/files/esxdos074.zip]available[/url]. This is (mainly) a bugfix release: [font=cou…
... : Wrong checksum on SAVE when LENGTH=0 bytes (ub880d)
* FAT ...Difficult to find upper RAM fault.I've recently repaired an issue 3B 48K Spectrum that had a tricky to diagnose upper RAM fault, so I thought I'd post a report of what I found here. …
... PEEK to examine the system variable P-RAMT produced 32767; it ... faulty. The P-RAMT system variable is set to the address ...Optimize this: Distance CalculationBased on a taylor series expansion, suggested by NA_TH_AN, I've got this so far, which is far far faster than SQR(X^2+y^2) Formula is: in a right an…
... H, as an estimate of length of H, it returns (A ...BASin v.15 DEF FN bugThe bug would appear to be in "BASSupport.pas : Procedure ProcessDEFFN"; as it's not inserting the 6-byte variable place holder after each parameter …
... not inserting the 6-byte variable place holder after each parameter ...INPUT LINE and STOP in INPUTWhat was the reason for the ROM Editor routine causing "down arrow" while in an INPUT LINE to cause the "H STOP in INPUT" error report? Why doesn't i…
... Input buffer into a string variable so I didn't lose ...simplest method to pass a string to m/code?The statement "RANDOMIZE numvar+USR mc" is a simple way of passing a single numeric parameter to a m/c routine, as mc can retrieve numvar from the to…
... the same for a string variable but haven't done so ...Shaded Desktop...Hi Folks, As part of some BASin testing I thought I would create a little program that creates a shaded desktop. In this case it goes from solid bl…
... in 25% decrements. The b$ variable could then be stored separately ...+3 DOS questionHey all, Is it possible to catalogue a +3 disk to a variable somehow from BASIC? I'm looking at extending my Snapshot to Microdrive utility, so it s…
... a +3 disk to a variable somehow from BASIC? I'm ...Screen2StringFurther to writing that BASIC one-liner to redirect CAT to a string I thought that I'd do a general redirection routine for anything which normally p…
... so that the maximum expected length does not extend over the ... sa=string address; sl=string length; sd=DEFADD pointer to string ...