This shows you the differences between two versions of the page.
el:portout [2016/01/01 22:39] |
el:portout [2020/02/28 10:46] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== PortOut ===== | ||
+ | ==== Format ==== | ||
+ | **portout** ( //io port number//, //value// ) | ||
+ | |||
+ | ==== Description ==== | ||
+ | |||
+ | Writes value (0-255) to system I/O port. | ||
+ | |||
+ | Reading and writing system I/O ports can be dangerous and can cause unpredictable results. | ||
+ | |||
+ | Functionality only available in Windows port. Under Vista and Windows 7 you should run BASIC-256 with elevated permissions (Administrator) once to install the inpout32 driver required for this functionality to work. Once the driver has been installed the PortIn/ | ||
+ | |||
+ | ==== See Also ==== | ||
+ | |||
+ | [[PortIn|PortIn]] | ||
+ | |||
+ | ==== Example ==== | ||
+ | |||
+ | < | ||
+ | for y = 0 to 255 | ||
+ | | ||
+ | print y + " " + portin(0x379) | ||
+ | pause .1 | ||
+ | next | ||
+ | </ | ||
+ | will output the numbers 0-255 to the standard first printer port and print the value of the status register. | ||
+ | |||
+ | ==== New To Version ==== | ||
+ | 0.9.6.41 | ||