ZX Format #05
11 декабря 1996 |
|
Programmers - the exchange of experience: "Counting the Brain" - AUTOconfig v5.03.
AUTOconfig v5.03 music by DNK (C) CREATOR CODE ________________________________ "... Both of them, AND YOU CAN NOT BREAD (V. RMP) This procedure is when it starts determines the type of computers, and accordingly the amount of memory. Determined: Sinclair 48/128/512k TURBO 2 + 128/1024k v6.00-v7.1 ATM turbo a 128/512k v4.10-v5.20 Scorpion 128/512k PROFI 128/1024k After determining the type of start to determine the amount of free memory. The results of these investigations are recorded in variables TYPE - type of computing system. PAGE - the number of pageable pages. Switching on the physical number of pages - a procedure EX_RAM on logic - ONPAGE page number in the accumulator. example: ... LD A, 8, eight pages CALL EX_RAM ... Connect the eighth starnitsu in connector. In this example, will connected real-eighth page. ... LD A, 8 CALL ONPAGE ... In this example, the connector will connected to the eighth in Table pages present. (Since it eliminated 2 and 5 page). If you want to exclude from circulation some pages (such as SCORPION in 8 pages) is in the battery room to remove pages and call the procedure DEBUG, example: ... LD A, 8 CALL DEBUG ... Delete page 8 of treatment. allocation of bits in a cell TYPE: 0 - SPECTRUM 128K port # 7FFD 1 - SCORPION / KAY port # 1FFD 2 - PROFI port # FDFD 3 - TURBO 2 + port # FFF7 4 - ATM-TURBO port # FDFD 5 - SPECTRUM 256/512K 6 - 7 - at 8, # C3 (SCORPION) Naturally the type of computing system is determined neskolkomi bits. Such as defining TURBO 2 + in cell TYPE is - 9 (found # 7FFD and # FFF7), if the procedure shove from 128kb and 8 - if the procedure is started from 48Kb. (C) CREATOR CODE 1996 MCMXCVI ZF> entot prog too, in an application form TASM4'go source.
Other articles:
Similar articles:
В этот день... 21 November