Blame | Last modification | View Log | Download | RSS feed
ifndef __regst6inc ; avoid multiple inclusion__regst6inc equ 1savelisting off ; no listing over this file;****************************************************************************;* *;* AS 1.42 - File REGST6.INC *;* *;* contains SFR and Bit Definitions for ST6 Processors *;* *;****************************************************************************;----------------------------------------------------------------------------; Until bit field symbols are introduced...bfield macro {INTLABEL},reg,start,count__LABEL__ equ ((1<<(count+start))-1)-((1<<start)-1)endm;----------------------------------------------------------------------------; Include proper CPU-specific register definitionsswitch MOMCPUNAMEcase "ST6200", "ST6201", "ST6203"include "st6/reg6200.inc"case "ST6208", "ST6209", "ST6210", "ST6220"include "st6/reg6208.inc"case "ST6215", "ST6225"include "st6/reg6215.inc"case "ST6218"include "st6/reg6218.inc"case "ST6228"include "st6/reg6228.inc"case "ST6230","ST6232"include "st6/reg6230.inc"case "ST6235"include "st6/reg6235.inc"case "ST6240"include "st6/reg6240.inc"case "ST6242"include "st6/reg6242.inc"case "ST6245"include "st6/reg6245.inc"case "ST6246"include "st6/reg6246.inc"case "ST6252","ST6262"include "st6/reg6252.inc"case "ST6253","ST6260","ST6263"include "st6/reg6253.inc"case "ST6255","ST6265"include "st6/reg6255.inc"case "ST6280"include "st6/reg6280.inc"case "ST6285"include "st6/reg6285.inc"elsecaseerror "wrong processor type set: only ST6200, ST6201, ST6203, ST6208, ST6209, ST6210, ST6215, ST6218, ST6220, ST6225, ST6228, ST6230, ST6232, ST6235, ST6240, ST6242, ST6245, ST6246, ST6252, ST6253, ST6255, ST6260, ST6262, ST6263,"fatal "ST6265, ST6280, ST6285 allowed!"endcaseif MOMPASS=1message "ST6 Register Definitions (C) 2019 Alfred Arnold"endif;----------------------------------------------------------------------------; CPURegX sfr 80h ; already known as internal symbols, just for completenessRegY sfr 81hRegV sfr 82hRegW sfr 83hRegA sfr 0ffhDRWR sfr 0c9h ; Data ROM Window registerRomBase sfr 40h ; Data ROM Window;----------------------------------------------------------------------------; Post Processingifndef ROMENDROMEND label 0fffhendifif ROMEND>0fffhPRPR sfr 0cah ; Program ROM Page Registerendifinclude "st6/instr.inc";----------------------------------------------------------------------------restore ; allow againendif ; __regst6inc