| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
|
|
|
| |
The file device shows the special directories . and .. in every
directory but the root directory. To hide these, in non-root
directories, we reduce the reported number of child entries by 2, and
when selecting a child entry we increment the pointer by 2.
|
| |
|
|
|
|
| |
This will need to be changed once multitasking is properly implemented.
|
|
|
|
|
| |
Evaluating a greater number of cycles at a time reduces the overhead
caused by the Bedrock instance management code.
|
| |
|
| |
|
|
|
|
| |
Drawing a line with length of 0x4000 or greater was never terminating.
|
|
|
|
|
| |
Many functions which used the scr->nds pointer were not first checking
that the pointer was not null.
|
|
|
|
|
|
|
| |
A Bedrock instance contains some data which should not be erased, such
as the buffer contents for the system name and system author ports, and
the identifier for the memory device. This has been stubbed out for now,
since it isn't yet needed.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously, any palette updates would be immediately visible, but any
screen updates would draw to the back buffer and would only become
visible when the back buffer was copied to the front buffer. This could
result in a flash of a new palette before the new screen had a chance
to draw and become visible.
To prevent this, a second palette was created to receive palette
updates, with the updates only being copied to the visible palette when
the screen buffers flip.
|
|
|
|
|
|
|
| |
There is still a small amount of work to be done on the file device:
- Read file size only when requested
- Hide '.' and '..' directories
- Resize files
|
| |
|
|
|
|
|
| |
Two pairs of generic get/set functions now do the role of the previous
pair of custom get/set functions for each timer.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The memory device is fully implemented, with 3MB of heap memory.
This commit is a bit messy, additional changes are:
- The program memory and program counter in each Bedrock struct have
been moved to a dedicated struct to prevent a name collision with the
memory device
- The run_bg and debug functions have been moved to core.c and debug.c
- The blank screen colour has been changed back to black
- No second program runs on the sub screen by default
- The number of Bedrock instances to run has been parameterized
|
|
|