title	ldebdata
;	SCCSID = @(#)ldebdata.asm	11.1 87/10/29

.xlist
.xcref
include ldebequ.inc
.list
.cref

include ldebseg.inc

Sticky_Frame struc
	BrkFlg		db	?		;Break flags, 1= Set, 2= Enable
	BrkCntr		dw	?		;Repetition down  counter
	BrkReps		dw	?		;Repetition count before Break
	BrkOff		dw	?		;Break addr offset
	BrkSeg		dw	?		;Break addr Segment
	BrkInst		db	?		;Save instruction
	BrkCmdL		db	?		;Breakpoint commands length
	BrkCmnd		db	32 Dup (?)	;Breakpoint commands
Sticky_Frame ends


DBDATA	segment

	public	_pTXT
	public	_ASMADD, _DISADD, _INDEX, _DEFDUMP
	public	_OPCODE, _AWORD
	public	_REGMEM, _MIDFLD, _MODE, _NSEG, _OPBUF
	public	_SBRTAB

	public	_REG8, _REG16, _SREG
	public	_SEGTAB, _REGTAB
	public	_RegSA
	public	_REGDIF
	public	_lbf
	public	_SYNERR, _ERRMES

	public	_StackTop

_pTXT		dw	?		;Command line Text Pointer

_ASMADD		db	4 dup (?)
_DISADD		db	4 dup (?)
_INDEX		dw	?
_DEFDUMP	db	4 dup (?)


_SBRTAB	 Sticky_Frame 10 dup (<>)	; Sticky Breakpoint table

_OPCODE		dw	?
_AWORD		db	?
_REGMEM		db	?
_MIDFLD		db	?
_MODE		db	?
_NSEG		dw	?
_OPBUF		db	OPBUFLEN dup (?)

_REG8		db	"ALCLDLBLAHCHDHBH"
_REG16		db	"AXCXDXBXSPBPSIDI"
_SREG		db	"ESCSSSDS",0,0

_SEGTAB		dw	OFFSET IGROUP:_RegSA.ESSAV
		dw	OFFSET IGROUP:_RegSA.CSSAV
		dw	OFFSET IGROUP:_RegSA.SSSAV
		dw	OFFSET IGROUP:_RegSA.DSSAV

_REGTAB		db	"AXBXCXDXSPBPSIDIDSESSSCSIPPC"

; Register save area

		dw	8 dup (?)
_RegSA	label	word ; Stack set here so registers can be restored by popping
		dw	0		;AX Save Area
		dw	0		;BX Save Area
		dw	0		;CX Save Area
		dw	0		;DX Save Area
		dw	0		;SP Save Area
		dw	0		;BP Save Area
		dw	0		;SI Save Area
		dw	0		;DI Save Area
		dw	0		;DS Save Area
		dw	0		;ES Save Area
			; Stack set here so registers can be saved by pushing
		dw	0		;SS Save Area
		dw	0		;CS Save Area
		dw	0		;IP Save Area
		dw	0		;F  Save Area

_REGDIF		equ	 _RegSA - _REGTAB

; RAM area.

_lbf		lbf_s	<BUFLEN,0,>	;command line buffer

_SYNERR		db	'^'
_ERRMES		db	" Error",cr,lf,"$"

		db	256 Dup (?)
_StackTop  label word

DBDATA	ends

	end
