Category : Assembly Language Source Code
Archive   : ASPIC.ZIP
Filename : SEGDEF.ASM

 
Output of file : SEGDEF.ASM contained in archive : ASPIC.ZIP
.include "SEGMACS.ASI"
.include "MAP.NEC"
;*********************************************************
;* STADARD SEGMENT DEFINITIONS FOR 78C10 *
;*********************************************************

SHORTBAS = 2*K+CXP
DEFSEG MEM,RAMBAS,RAMBAS+RAMSIZ-STKSIZ ;RAM DATA SEGMENT
DEFSEG VECS,ROMBAS,ROMBAS+80H ;MACHINE VECTOR SEGMENT
DEFSEG SUBT,$80,$80+(32*2) ;CALLT VECTOR SEGMENT
DEFSEG CODE,$C0,SHORTBAS ;PRIMARY CODE AREA
DEFSEG SUBS,SHORTBAS,(4*K) ;SHORT CALL CODE AREA
DEFSEG CODEX,(4*K),ROMSIZ ;EXTENDED CODE AREA

***************************************************************
* TSUB --- Macro to manage the CALT vector table *
* Adds a vector to the table and assigns a label to *
* the vector for use in CALT instructions. *
* *
* usage: *
* TSUB NAME ;defines a tabel sub called NAME *
* *
* RET *
* *
* Then to reference the subroutine: *
* CALT NAME *
***************************************************************

TSUB .MACRO *[1] ;define a subroutine named [1] for CALT
..MYADR = * ;save current address
SEG SUBT ;switch to SEG SUBT (subroutine table)
.mxp on ;force data to print with correct PC
[1]: .WORD ..MYADR ;subroutine table entry
.mxp off
OLDSEG
.ENDM


  3 Responses to “Category : Assembly Language Source Code
Archive   : ASPIC.ZIP
Filename : SEGDEF.ASM

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/