Assembly Language PAGED Module - fvdhoef/aquarius-plus GitHub Wiki

PAGED Module

This module contains routines for reading, writing to paged memory, copying between pages, and copying between main memory and paged memory.

Note: The following documentation is incorrect.


page_check_read_write

Verifies that source and destination pages are valid for read and write..
Input IYL: Destination Page
IYH: Source Page
Output Zero Flag: Clear if both pages are valid, Set if not
Clobbers A
** **: _ _

page_copy_bytes

Copies from one memory page to another.
Input BC: Byte Count
DE: _Destination Address _
HL: Source Address
IYL: Destination Page
IYH: Source Page
Output Zero Flag: Set if either page is invalid
Carry Flag: Set if overflow
Clobbers A,BC,DE,HL,AF',HL',IX

page_fast_copy

Copies an entire page to another page with no rollover.
Input BC: Byte Count
DE: _Destination Address _
HL: Source Address
IYL: Destination Page
IYH: Source Page
Output Zero Flag: Clear if both pages are valid, Set if not
Clobbers A,BC,DE,HL,BC',HL'

page_full_copy

Copies an entire page to another page.
Input IYL: Destination Page
IYH: Source Page
Output Zero Flag: Clear if both pages are valid, Set if not
Clobbers A,BC,DE,HL,BC',HL'

page_fast_read_bytes

Copies from paged memory to main memory with no page rollover.

page_fast_write_bytes

Copies from main memory to paged memory with no page rollover.

page_mem_swap_bytes

Swaps between main memory and paged memory with no page rollover.

page_fill_byte

Fills range of paged memory with a byte.

page_fill_word

Fills range of paged memory with a word.

page_map

Maps page into bank.

page_restore

Restores page that was in bank prior to _page_map_.

page_restore_two

Restore pages that were in banks 1 and 2 prior to page_swap_two call.
Reads BANK2PAGE, BANK3PAGE, PLUSTCK
Clobbers AF',IX

page_read_byte

Reads a byte from paged memory.

page_swap_two

Disable interrupts, set up temporary stack, and swap pages into Banks 2 and 3.
Input A: Page to Swap into Bank 3
A': Page to Swap into Bank 2
Writes BANK2PAGE, BANK3PAGE, PLUSTCK
Clobbers AF,AF',HL',IX

Call page_restore_two to restore original pages.


page_write_byte

Writes a byte to paged memory.

page_read_word


page_write_word


page_restore_plus


page_restore_ram2


page_write_bytes


page_read_bytes


page_set4read_coerce


page_set4write_coerce


page_inc_addr


page_next_address


page_coerce_address


page_set_for_write


page_set_for_read


page_check_write


page_check_read


page_next


page_check_next


set_carry_flag


set_zero_flag

⚠️ **GitHub.com Fallback** ⚠️