AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
=>     R0 =     0
     R1 =     0 to display OS version
           1 to return machine info

Display OS version
<=     R0 =     pointer to OS version string as an error block
     R1 preserved
     R2 corrupted
     V set

Return machine info
<=     R0 preserved
     R1 =     machine type
     R2 corrupted

If R1=0 this call displays the OS version by returning it as an error string, with V set.

If R1=1 this call returns the machine type in R1 - all RISC OS machines return 6.

See PRM 1, page 936
OS_Byte 0 OS version return types
Number     OS

0     Electron
1     BBC
2     BBC B+
3     Master 128
4     Master 128 Econet Terminal
5     Master 128 Compact
6     ARM based machine (Arthur and RISC OS)
7     Springboard (ARM on a PC ISA card)
8     UNIX
9     6809/6309
10     Mac OS X
17     6809/6309 (again)
28     Commodore 64/128
29     TI calculator
30     Amstrad CPC
31     Sinclair ZX Spectrum
32     DOS/Windows
39     6809/6309 (again)

[sh-index] Back to list of manuals