Host System Values ================== mdfs.net/Docs/Comp/Acorn/HostVals OSBYTE0 returns what type of host you're running on. INKEY-256 (OSBYTE 129,&FF00) returns the varient of the hardware, viz: fx0: INKEY-256 low byte: (Varient of host system:) error &00: BBC OS 0.10 0 &FF: BBC OS 1.00 (full word returned=-1) &01: Electron &F9: Communicator 1 &FF: BBC OS 1.20 (full word returned=-1) &FF: Acorn Business Machine OS 1.23 (full word returned=-1) &FE: BBC OS A1.0 (US) &FC: BBC OS 1.20 (Germany) &FA: Acorn Business Computer OS 2 &FF: Reuters Terminal OS R0.3 (UK) (switched with *UK) &FE: Reuters Terminal OS R0.3 (US) (switched with *US) &FB: BBC B+ OS 2.00 &FA: Acorn Business Computer OS 2.00 &FA: Cambridge Workstation OS 2.10 3 &FD: Master OS 3.20 4 &F7: Master ET OS 4.00 5 &F5: Master Compact 6 &A0: Archimedes Arthur 1.xx &A1: Archimedes RISC OS 2.00 &A2: Archimedes RISC OS 2.01 &A3: Archimedes RISC OS 3.0x &A4: Archimedes RISC OS 3.1x &A5: Archimedes RISC OS 3.5x &A6: Archimedes RISC OS 3.6x &A7: Archimedes RISC OS 3.7x &A8: RISC OS 4.0x &A9: RISC OS 4.3x &AA: RISC OS 5.xx (ie, arm%=(INKEY-256 AND &F0)=&A0 ) 7 &AF: Springboard (An ARM-based development system plugged into a PC) 8 ---: UNIX-type OS &FE: NetBSD &FB: Beos &F9: Linux &F8: MacOS X &F7: FreeBSD &F6: OpenBSD &F5: Amiga &F4: GNU FreeBSD &F3: GNU &Bx: PDP11 Unix &B7: PDP11 Unix Version 7 &B6: PDP11 Unix Version 6 9 : BBC 6809/6309 system with "dir/file.ext" filesystem &68: 6809 system with dir/file.ext filesystem &63: 6309 system with dir/file.ext filesystem 10 &F8: MacOS X 17 : BBC 6809/6309 system with "dir.file/ext" filesystem &68: 6809 system with dir.file/ext filesystem &63: 6309 system with dir.file/ext filesystem 28 &Cx: Commodore 64/64+/128/etc 29 &8x: TI Calculator 30 &Dx: Amstrad 464/664/6128, etc. 31 &Ex: Spectrum 32 **** DOS with Basic(86) (INKEY-256 not available) &57: BBC BASIC for Windows &FC: Windows 32 with Brandy Basic &FA: DOS with Brandy Basic 39 &68: 6809 system with dir\file.ext filesystem 39 &63: 6309 system with dir\file.ext filesystem -- &FE: NetBSD (Brandy Basic) -- &FC: Windows 32 (Brandy Basic) -- &FB: Beos (Brandy Basic) -- &FA: DOS with DJGPP DOS extender (Brandy Basic) -- &F9: Linux (Brandy Basic) -- &F8: MACOS X (Brandy Basic) -- &F7: FreeBSD (Brandy Basic) -- &F6: OpenBSD (Brandy Basic) -- &F5: Amiga (Brandy Basic) -- &F4: GNU FreeBSD (Brandy Basic) -- &F3: GNU (Brandy Basic) -- &00: RM Nimbus NOTES ===== Some sources quote returning X=0 with BBC B MOS 0.xx, but that's incorrect as OSBYTE 0 always returned with an error message describing the version in MOS 0.xx (eg "EPROM OS 0.10"), it would never return a value. BBC MOS 1.00 returned X=0 BBC BASIC 86 for DOS actually returns the character code under the cursor. That character will be a space if the program stars by clearing the screen, or printing to a new line with nothing already printed. I don't know what varients OS 8 (Unix) running on RiscIX returns. I've now got some more documents, so it may be in there. History ======= 07-Aug-2004: Added Springboard values 07-Oct-2004: Added &57 for Windows 09-Mar-2005: Added Amiga, MacOS and more UNIX systems 12-Mar-2008: Added TI Calculator 15-May-2008: Added more Brandy Basic values, PDP11 Unix