how to know the current PRINT position in BASIC?

2014-07-01 Thread Marcos Cruz
This message was rejected by the list filters some days ago. I try again. - Forwarded message Date: Sat, 28 Jun 2014 21:00:28 +0200 I'm writing, in MasterBASIC, a procedure that prints a text left justified, starting at the current printing position and leaving the printing position at the

Re: Basic address vs. physical address

2012-12-02 Thread Michal Jurica
Oh, thank you very much! Now it's working fine and also thanks for sources ;-) mike/zeroteam On Sun, 2 Dec 2012, Simon Owen wrote: Hi Michal, Here's the default paging setup in SAM BASIC: -3FFF: ROM0 (underneath is RAM page 31) 4000-7FFF: RAM page 0, some of which is system variables

Basic address vs. physical address

2012-12-01 Thread Michal Jurica
between basic adressing (for USR function) and physical addressing. If I load binary code at basic adress 16384, it appear at physical address 32768, but when I run RANDOMIZE USR 16384 it jump at 16384. How do you run your machine code programs? Exists some examples? Thanks for answers and keep

RE: Basic question! SDCC

2010-12-09 Thread Tennebø Frode
On 07-Dec-10 13:38, Tennebø Frode wrote: Just looking at http://sdcc.sourceforge.net/ , a Small Device C Compiler. Was there a reason why it can't be used to compile to SAM? Not really. z88dk (http://www.z88dk.org/) already has a working SAM mode, and sdcc and z88dk is in some

Basic question! SDCC

2010-12-07 Thread Balor Price
Hello everyone Just looking at http://sdcc.sourceforge.net/ , a Small Device C Compiler. Was there a reason why it can't be used to compile to SAM? Hope you're all doing well! I've spent a couple of days trawling through my 20-year-old SAM floppy collection to see what's salvageable.

RE: Basic question! SDCC

2010-12-07 Thread Tennebø Frode
Just looking at http://sdcc.sourceforge.net/ , a Small Device C Compiler. Was there a reason why it can't be used to compile to SAM? Not really. z88dk (http://www.z88dk.org/) already has a working SAM mode, and sdcc and z88dk is in some sort of coop mode these days, trying to adapt to

Re: Basic question! SDCC

2010-12-07 Thread Balor Price
On 07-Dec-10 13:38, Tennebø Frode wrote: Just looking at http://sdcc.sourceforge.net/ , a Small Device C Compiler. Was there a reason why it can't be used to compile to SAM? Not really. z88dk (http://www.z88dk.org/) already has a working SAM mode, and sdcc and z88dk is in some sort of

Re: Random Sam BASIC question.

2008-09-08 Thread Leszek Chmielewski
import it is a bit hard. Oh, my emulator is ElectrEm, at http://electrem.acornelectron.co.uk, though it doesn't import or export binary files at present. That's probably a more startling revelation if I also reveal that it does import and export ASCII text format BASIC programs. I've been doing

Random Sam BASIC question.

2008-08-28 Thread James R Curry
Okay, utterly random question... How does one determine the start address of the screen in Sam BASIC? I forget. It has been years. -- James R Curry [EMAIL PROTECTED]

Re: Random Sam BASIC question.

2008-08-28 Thread Thomas Harte
Register Greetings, LCD Thomas Harte schrieb: Port 252 is read/write? Anybody got any idea about ports 250 251? On 28 Aug 2008, at 20:22, Leszek Chmielewski wrote: James R Curry schrieb: Okay, utterly random question... How does one determine the start address of the screen in Sam BASIC

Re: Random Sam BASIC question.

2008-08-28 Thread Leszek Chmielewski
idea about ports 250 251? On 28 Aug 2008, at 20:22, Leszek Chmielewski wrote: James R Curry schrieb: Okay, utterly random question... How does one determine the start address of the screen in Sam BASIC? I forget. It has been years. -- James R Curry [EMAIL PROTECTED] mailto:[EMAIL PROTECTED

Re: Random Sam BASIC question.

2008-08-28 Thread Leszek Chmielewski
a page of one of the few ROMs that the keyboard and BASIC ROM can recognise to be not themselves so that they'll release the bus, then do your actual page; it took me ages to find a scheme for my Electron emulator that matched that documented behaviour and the expectations of all the software

Re: Random Sam BASIC question.

2008-08-28 Thread Thomas Harte
don't work in anything to do with software so I don't end up with programming fatigue from my real life. I'm also giving serious consideration to knocking up a quick BASIC dialect to try to increase the code's reach to non-ASM people and make it more likely that some actual titles

Basic keyboard scanning with IN

2007-08-07 Thread Calvin Allett
Could anyone tell me the address's to read using IN (or should that be ports) for groups of SAM keys? I need more than one keypress, and would like to use the following keys (or groups).. O, and P - Z and M and space should be needed. 64509 seems to be keys Q,W,E,R,T and from FRED issue 11A,

Re: Basic keyboard scanning with IN

2007-08-07 Thread Calvin Allett
Just realised the port address's are seperated by 256 bytes, so should be able to find the ones I need. I hadn't known that :) Calvin Allett [EMAIL PROTECTED] wrote: Could anyone tell me the address's to read using IN (or should that be ports) for groups of SAM keys? I need more than one

Re: Basic keyboard scanning with IN

2007-08-07 Thread Colin Piggot
) The first five bits of each port is used for keys, so BAND is an excellent way to strip off the unwanted bits to check, and the bits will be LOW if the key is pressed, so to test bit 0, do BAND 1, bit1 - do BAND 2, bit 2 - BAND 4 ... E.g. test for say, O, in BASIC IF NOT ((IN 57342) BAND 2

Re: Basic keyboard scanning with IN

2007-08-07 Thread Andrew Collier
avoid that in basic because you'll get into a lot of trouble with the mouse interface which shares that address (kinda). HTH, Andrew On 8 Aug 2007, at 00:25, Calvin Allett wrote: Just realised the port address's are seperated by 256 bytes, so should be able to find the ones I need. I

Re: Basic keyboard scanning with IN

2007-08-07 Thread Calvin Allett
on IN 65534, but I would avoid that in basic because you'll get into a lot of trouble with the mouse interface which shares that address (kinda). HTH, Andrew On 8 Aug 2007, at 00:25, Calvin Allett wrote: Just realised the port address's are seperated by 256 bytes, so should be able to find

Re: Basic keyboard scanning with IN

2007-08-07 Thread Calvin Allett
I see how the keys on the left/right hand side of the keyboard have the bits reversed... I am (currrently), was gonna just go with tested values (15,23,27,29,30 or reversed) but cheers for the Basic example of how to use BAND, and what it is I can`t believe I had forgot about/never used

Re: Basic keyboard scanning with IN

2007-08-07 Thread Calvin Allett
), was gonna just go with tested values (15,23,27,29,30 or reversed) but cheers for the Basic example of how to use BAND, and what it is I can`t believe I had forgot about/never used it... so it`ll probably come in handy getting familiar with it, as I could mess about with other ports hopefully :D

Re: Basic

2005-02-03 Thread Paolo Borzini
Hi Morrigan, MorriganCP wrote: Sat, 29 Jan 2005 02:53:44 -0800 Are there a Typedef struct (for create a type of object) in SamCoupe Basic? This any help? probably, I am explained badly. Sorry my english is not too good ;-( In C and the modern Basic dialect exist a possibility to define

Re: Basic

2005-02-03 Thread Andrew Collier
On Thu, 2005-02-03 at 15:11, Paolo Borzini wrote: In C and the modern Basic dialect exist a possibility to define a Type Structure. Is it possible in Sam Basic ? No, SamBASIC does not provide this. (Don't know if MasterBASIC introduced anything like this though?) Andrew

Basic

2005-01-29 Thread autopri
Hi all, I'am a new user in this newsgroups. I have a question : Are there a Basic Compiler for SamCoupe ? Are there a Typedef struct (for create a type of object) in SamCoupe Basic? Thanks Paolo

Re: Basic

2005-01-29 Thread MorriganCP
Are there a Basic Compiler for SamCoupe ? I have never seen one. Are there a "Typedef struct" (for create a type of object) in SamCoupeBasic? This any help?:- -snip--- DEF PROC namekicks off the DEFinition of a named PROCedure,and DEF PROC must be the fir

Re: Basic

2005-01-29 Thread david
[EMAIL PROTECTED] wrote: Are there a Basic Compiler for SamCoupe ? I have never seen one. Lightning - the SAM version of ZIP Compiler - has apparently been worked on for quite a long time by Simon Goodwin... with some contributions by Andy Wright I think

Sam Mailing List Basic Instructions

2002-04-19 Thread dan
Sam Mailing List Basic Instructions To subscribe to the sam-users miling list, send the following command in email to [EMAIL PROTECTED]: subscribe If you ever want to remove yourself from this mailing list, send the following command in email to [EMAIL PROTECTED]: unsubscribe

Mallard Basic

2001-06-24 Thread Womoteam
Hi Guys. An italien friend is looking for a Mallard-Basic manual. I know it is from the Spectrum+3, but some of you have or comes from the Speccy or has other contacts. If you know a source of an english documentation, then please let me know, I will give it further. Thanks foro your efforts. Wo

BASIC

2000-06-24 Thread dirty . fly
Hi its me again (the pane in the ass newbie) Where can i get a basic user guide, better yet a sam userguide ? i noticed the existence of a def proc in basic can anyone tellme how it works is it alá qbasic stile ? thanks

Re: BASIC

2000-06-24 Thread D.A. Fulton
Where can i get a basic user guide, better yet a sam userguide ? As with the disk drive - Format was your best bet. I believe a copy is in the process of being put on the web atm though. i noticed the existence of a def proc in basic can anyone tellme how it works is it al? qbasic stile

Re: BASIC (here DEF PROC)

2000-06-24 Thread womoteam
[EMAIL PROTECTED] schrieb: Hi its me again (the pane in the ass newbie) Where can i get a basic user guide, better yet a sam userguide ? i noticed the existence of a def proc in basic can anyone tellme how it works is it alá qbasic stile ? thanks Hi dirty fly, maybe a bit of an answer

Re: BASIC

2000-06-24 Thread Mac Buster
[EMAIL PROTECTED] wrote: Hi its me again (the pane in the ass newbie) Where can i get a basic user guide, better yet a sam userguide ? There (LARGE!)- http://museum.ruhr.de/scans/sinclair/samusersguide.pdf i noticed the existence of a def proc in basic can anyone tellme how it works