Changes for page API контроллеров AZ®
Last modified by Max on 2025/03/02 15:18
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1034,15 +1034,14 @@ 1034 1034 {{code language="assembler"}} 1035 1035 ;-------------------------------------------------- 1036 1036 ; 76th page map - we prepare data for the screenshot command there 1037 -SCR_PAGE = 130000 ; we temporarily attach the 76th page to the 77th - that is, into the 130000 window 1038 -SCR_TAG = SCR_PAGE+0 ; here is the input - 240 - 1 word 1039 -SCR_ADDR_CONF 1040 -SCR_PAGE_CONF 1037 +SCR_PAGE = 130000 ; we temporarily attach the 76th page to the 77th - that is, into the 130000 window 1038 +SCR_TAG = SCR_PAGE+0 ; here is the input - 240 - 1 word 1039 +SCR_ADDR_CONF = SCR_TAG+2 ; here is the command with addresses - address+length 24 bits - 4 words 1040 +SCR_PAGE_CONF = SCR_ADDR_CONF+8. ; here is the command with pages - the starting page and the number of pages - 2 words 1041 1041 SCR_MEM_CONF = SCR_PAGE_CONF+4. ; here is the memory configuration from the registers - 22 words 1042 1042 SCR_VGA_CONF = SCR_MEM_CONF+44. ; here video controller configuration - 10 words 1043 -SCR_PAL = SCR_VGA_CONF+20. ; here 338. values ??(words) of palette 338 words1043 +SCR_PAL = SCR_VGA_CONF+20. ; here 338. values (words) of palette 338 words 1044 1044 ;-------------------------------------------------- 1045 - 1046 1046 ; trap 41 - preparation of default information for screenshot functionality 1047 1047 PrepSRC: jsr R5, PUSHA ; batch saving of registers 1048 1048 mov @#177326,-(SP) ; save page 130k which was before the call ... ... @@ -1138,16 +1138,16 @@ 1138 1138 Example program 1139 1139 1140 1140 {{code language="assembler"}} 1141 -; обновиминформациювхидерескриншота1140 +; update the information in the screenshot header 1142 1142 ;-------------------------------------------------- 1143 -; карта76йстраницы-тудамыготовимданныедлякомандыскринщотов1144 - 70000уюстраницуцепляемнаместо77йвременно-тевокно1300001145 - тутвход- 240 - 1слово1146 - сюдакомандусадресами-адрес+длина24бита- 4слова1147 - сюдакомандусостраницами-начальнаястраницаиколичествостраниц- 2слова1148 - cюдаконфигурациюпамятиизрегистров- 22слова1149 - сюдаконфигурациювидеоконтроллера- 10cлов1150 - сюда338.значений(слов)палитры338слов1142 +; 76th page map - we prepare data for the screenshot command there 1143 +SCR_PAGE = 130000 ; we temporarily attach the 76th page to the 77th - that is, into the 130000 window 1144 +SCR_TAG = SCR_PAGE+0 ; here is the input - 240 - 1 word 1145 +SCR_ADDR_CONF = SCR_TAG+2 ; here is the command with addresses - address+length 24 bits - 4 words 1146 +SCR_PAGE_CONF = SCR_ADDR_CONF+8. ; here is the command with pages - the starting page and the number of pages - 2 words 1147 +SCR_MEM_CONF = SCR_PAGE_CONF+4. ; here is the memory configuration from the registers - 22 words 1148 +SCR_VGA_CONF = SCR_MEM_CONF+44. ; here video controller configuration - 10 words 1149 +SCR_PAL = SCR_VGA_CONF+20. ; here 338. values (words) of palette 338 words 1151 1151 ;-------------------------------------------------- 1152 1152 1153 1153 mov @#177326,R5 ; сохраним страницу 130k которая была до вызова