2020-06-12 14:01:24 -04:00
|
|
|
PC/AT Recipe
|
|
|
|
|
|
|
|
Work in progress.
|
|
|
|
|
2020-06-16 19:05:36 -04:00
|
|
|
Register usage: SP is PSP, BP is RSP, DX is IP
|
|
|
|
|
2020-06-21 14:07:02 -04:00
|
|
|
Unlike z80 boot code, we don't check PS at each next call (we
|
|
|
|
do check RS though). It is the responsibility of every native
|
|
|
|
PSP-modifying word to call chkPS, . Also, chkPS, is a bit
|
|
|
|
different than in z80: it is parametrizable. The idea is that
|
|
|
|
we always call chkPS, before popping, telling the expected size
|
|
|
|
of stack. This allows for some interesting optimization. For
|
|
|
|
example, in SWAP, no need to pop, chkPS, then push, we can
|
|
|
|
chkPS and then proceed to optimized swapping in PS.
|
|
|
|
|
|
|
|
811 MBR bootloader 812-829 Boot code
|