DoStuff Wiki
Attachments
History
Blame
View Source
Documentation
About An Otter Wiki
Toggle dark mode
Login
Home
A - Z
Changelog
Page Index
Hardware
Backplane
Board Features
Memory Map
News
20260512 - Increased Cpu Speed
Programming
Examples
Duart
PIT
Handling Interrupts
Machine Library
MMU
Reference Material
Runtime
Toolchains
Project Ideas
Operating System
Gloworm Port
Linux Port
Atari Vector Generator
Ethernet Card
Keyboard Controller
Monitor
BIOS
Books
Datasheets
Getting Connected
Home
Specs and Tech Notes
Programming
Runtime
258e33
Commit
258e33
2026-06-02 13:05:22
Bob Green
: -/-
programming/runtime.md
..
@@ 29,11 29,13 @@
### Global Variables
crt0 sets the following global variables:
-
**uint8_t cpu_speed_mhz**. This uses the counter in the PI/T to figure out roughly how fast the CPU is being clocked at. Within a MHz or so.
+
| Variable | Comment |
+
| ------- | ------- |
+
| **uint8_t cpu_speed_mhz**. | This uses the counter in the PI/T to figure out roughly how fast the CPU is being clocked at. Within a MHz or so. |
-
**uint8_t cpu_type**. Figures out what CPU is installed: 0 - 68000/68008, 1 - 68010, 2 - 68020, 3 - 68030
+
| **uint8_t cpu_type**. | Figures out what CPU is installed: 0 - 68000/68008, 1 - 68010, 2 - 68020, 3 - 68030 |
-
**uint8_t running_in_rom**. When non-zero, indicates that the code is running in ROM. 0 indicates it's running in RAM.
+
| **uint8_t running_in_rom**. | When non-zero, indicates that the code is running in ROM. 0 indicates it's running in RAM. |
To access any of these variables, simply ```#include <machine.h.>```
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9