home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1996 September
/
pcwk_09_96.iso
/
demo
/
wgelectr
/
pk51demo
/
files.2
/
EXAMPLES
/
CSAMPLE
/
CSAMPLE.M51
< prev
next >
Wrap
Text File
|
1995-09-07
|
13KB
|
349 lines
BL51 BANKED LINKER/LOCATER V3.52 07/09/95 11:23:19 PAGE 1
MS-DOS BL51 BANKED LINKER/LOCATER V3.52, INVOKED BY:
C:\C51\BIN\BL51.EXE C:\C51DEMO\EXAMPLES\CSAMPLE\CSAMPLE1.OBJ, C:\C51DEMO\EXAMP
>> LES\CSAMPLE\CSAMPLE2.OBJ, C:\C51DEMO\EXAMPLES\CSAMPLE\CSAMPLE3.OBJ TO C:\C5
>> 1DEMO\EXAMPLES\CSAMPLE\CSAMPLE PC (?DT?CSAMPLE3) IX RS (128) PL (68) PW (78
>> ) REGFILE (CSAMPLE.REG)
MEMORY MODEL: SMALL
INPUT MODULES INCLUDED:
C:\C51DEMO\EXAMPLES\CSAMPLE\CSAMPLE1.OBJ (CSAMPLE1)
C:\C51DEMO\EXAMPLES\CSAMPLE\CSAMPLE2.OBJ (CSAMPLE2)
C:\C51DEMO\EXAMPLES\CSAMPLE\CSAMPLE3.OBJ (CSAMPLE3)
C:\C51EVAL\LIB\C51S.LIB (?C_STARTUP)
C:\C51EVAL\LIB\C51S.LIB (?C?CLDPTR)
C:\C51EVAL\LIB\C51S.LIB (?C?CSTPTR)
C:\C51EVAL\LIB\C51S.LIB (?C?IMUL)
C:\C51EVAL\LIB\C51S.LIB (PRINTF)
C:\C51EVAL\LIB\C51S.LIB (GETCHAR)
C:\C51EVAL\LIB\C51S.LIB (?C?CLDOPTR)
C:\C51EVAL\LIB\C51S.LIB (?C?PLDIIDATA)
C:\C51EVAL\LIB\C51S.LIB (?C?CCASE)
C:\C51EVAL\LIB\C51S.LIB (PUTCHAR)
C:\C51EVAL\LIB\C51S.LIB (_GETKEY)
LINK MAP OF MODULE: C:\C51DEMO\EXAMPLES\CSAMPLE\CSAMPLE (CSAMPLE1)
TYPE BASE LENGTH RELOCATION SEGMENT NAME
-----------------------------------------------------
* * * * * * * D A T A M E M O R Y * * * * * * *
REG 0000H 0008H ABSOLUTE "REG BANK 0"
DATA 0008H 0019H UNIT ?DT?CSAMPLE3
BIT 0021H.0 0000H.1 UNIT ?BI?GETCHAR
BIT 0021H.1 0001H.2 UNIT _BIT_GROUP_
0022H.3 0000H.5 *** GAP ***
DATA 0023H 0001H UNIT ?DT?GETCHAR
DATA 0024H 0040H UNIT _DATA_GROUP_
IDATA 0064H 0001H UNIT ?STACK
* * * * * * * C O D E M E M O R Y * * * * * * *
CODE 0000H 0003H ABSOLUTE
CODE 0003H 0058H UNIT ?PR?MAIN?CSAMPLE1
CODE 005BH 0050H UNIT ?CO?CSAMPLE1
CODE 00ABH 001FH UNIT ?PR?_GETLINE?CSAMPLE2
CODE 00CAH 00ADH UNIT ?PR?_ATOI?CSAMPLE2
CODE 0177H 001CH UNIT ?PR?GETNUMBER?CSAMPLE2
CODE 0193H 0010H UNIT ?CO?CSAMPLE2
CODE 01A3H 000EH UNIT ?PR?_OUTPUT?CSAMPLE3
CODE 01B1H 000EH UNIT ?CO?CSAMPLE3
CODE 01BFH 000CH UNIT ?C_C51STARTUP
CODE 01CBH 00A2H UNIT ?C?LIB_CODE
CODE 026DH 0353H UNIT ?PR?PRINTF?PRINTF
CODE 05C0H 0011H UNIT ?PR?GETCHAR?GETCHAR
CODE 05D1H 0027H UNIT ?PR?PUTCHAR?PUTCHAR
CODE 05F8H 000AH UNIT ?PR?_GETKEY?_GETKEY
OVERLAY MAP OF MODULE: C:\C51DEMO\EXAMPLES\CSAMPLE\CSAMPLE (CSAMPLE1)
SEGMENT BIT_GROUP DATA_GROUP
BL51 BANKED LINKER/LOCATER V3.52 07/09/95 11:23:19 PAGE 2
+--> CALLED SEGMENT START LENGTH START LENGTH
------------------------------------------------------------------
?C_C51STARTUP ----- ----- ----- -----
+--> ?PR?MAIN?CSAMPLE1
?PR?MAIN?CSAMPLE1 0021H.1 0000H.1 0024H 0004H
+--> ?CO?CSAMPLE1
+--> ?PR?PRINTF?PRINTF
+--> ?PR?GETNUMBER?CSAMPLE2
+--> ?PR?GETCHAR?GETCHAR
+--> ?PR?_OUTPUT?CSAMPLE3
?PR?PRINTF?PRINTF 0021H.2 0001H.1 0050H 0014H
+--> ?PR?PUTCHAR?PUTCHAR
?PR?GETNUMBER?CSAMPLE2 ----- ----- 0028H 0028H
+--> ?CO?CSAMPLE2
+--> ?PR?PRINTF?PRINTF
+--> ?PR?_GETLINE?CSAMPLE2
+--> ?PR?_ATOI?CSAMPLE2
?PR?_GETLINE?CSAMPLE2 ----- ----- 0050H 0003H
+--> ?PR?GETCHAR?GETCHAR
?PR?GETCHAR?GETCHAR ----- ----- ----- -----
+--> ?PR?_GETKEY?_GETKEY
+--> ?PR?PUTCHAR?PUTCHAR
?PR?_ATOI?CSAMPLE2 0021H.2 0000H.1 0050H 0005H
?PR?_OUTPUT?CSAMPLE3 ----- ----- ----- -----
+--> ?CO?CSAMPLE3
+--> ?PR?PRINTF?PRINTF
SYMBOL TABLE OF MODULE: C:\C51DEMO\EXAMPLES\CSAMPLE\CSAMPLE (CSAMPLE1)
VALUE TYPE NAME
----------------------------------
------- MODULE CSAMPLE1
C:0000H SYMBOL _ICE_DUMMY_
B:00B0H.4 PUBLIC T0
B:00D0H.6 PUBLIC AC
B:00B0H.5 PUBLIC T1
B:00A8H.7 PUBLIC EA
B:00B0H.7 PUBLIC RD
B:00A8H.4 PUBLIC ES
B:0098H.0 PUBLIC RI
B:00B0H.2 PUBLIC INT0
B:00D0H.7 PUBLIC CY
B:0098H.1 PUBLIC TI
B:00B0H.3 PUBLIC INT1
B:00B8H.4 PUBLIC PS
B:00D0H.2 PUBLIC OV
C:0003H PUBLIC main
B:00B0H.6 PUBLIC WR
D:0098H PUBLIC SCON
D:0089H PUBLIC TMOD
D:0088H PUBLIC TCON
B:0088H.1 PUBLIC IE0
B:0088H.3 PUBLIC IE1
B:00A8H.1 PUBLIC ET0
B:00A8H.3 PUBLIC ET1
BL51 BANKED LINKER/LOCATER V3.52 07/09/95 11:23:19 PAGE 3
B:0088H.5 PUBLIC TF0
B:0088H.7 PUBLIC TF1
B:0098H.2 PUBLIC RB8
B:00A8H.0 PUBLIC EX0
B:0088H.0 PUBLIC IT0
D:008DH PUBLIC TH1
B:0098H.3 PUBLIC TB8
B:00A8H.2 PUBLIC EX1
B:0088H.2 PUBLIC IT1
B:00D0H.0 PUBLIC P
B:0098H.7 PUBLIC SM0
B:0098H.6 PUBLIC SM1
B:0098H.5 PUBLIC SM2
B:00B8H.1 PUBLIC PT0
B:00B8H.3 PUBLIC PT1
B:00D0H.3 PUBLIC RS0
B:0088H.4 PUBLIC TR0
B:00D0H.4 PUBLIC RS1
B:0088H.6 PUBLIC TR1
B:00B8H.0 PUBLIC PX0
B:00B8H.2 PUBLIC PX1
B:0098H.4 PUBLIC REN
B:00B0H.0 PUBLIC RXD
B:00B0H.1 PUBLIC TXD
B:00D0H.5 PUBLIC F0
------- PROC MAIN
C:0003H LINE# 13
------- DO MAIN
D:0024H SYMBOL number1
D:0026H SYMBOL number2
B:0021H.1 SYMBOL operation
C:0003H LINE# 17
C:0006H LINE# 18
C:0009H LINE# 19
C:000CH LINE# 20
C:000FH LINE# 22
C:0018H LINE# 24
C:0018H LINE# 25
C:001FH LINE# 26
C:0026H LINE# 27
C:002FH LINE# 28
C:003BH LINE# 29
C:0058H LINE# 31
C:005AH LINE# 32
------- ENDDO operation
------- ENDPROC MAIN
------- ENDMOD CSAMPLE1
------- MODULE CSAMPLE2
C:0000H SYMBOL _ICE_DUMMY_
C:00CAH PUBLIC _atoi
C:00ABH PUBLIC _getline
C:0177H PUBLIC getnumber
------- PROC _GETLINE
D:0050H SYMBOL line
C:00ABH LINE# 9
C:00B1H LINE# 10
C:00C9H LINE# 11
------- ENDPROC _GETLINE
------- PROC _ATOI
D:0050H SYMBOL line
C:00CAH LINE# 13
------- DO line
B:0021H.2 SYMBOL sign
D:0053H SYMBOL number
BL51 BANKED LINKER/LOCATER V3.52 07/09/95 11:23:19 PAGE 4
C:00D0H LINE# 18
C:00F4H LINE# 21
C:00F6H LINE# 22
C:0119H LINE# 25
C:0137H LINE# 26
C:0164H LINE# 28
C:0176H LINE# 29
------- ENDDO number
------- ENDPROC _ATOI
------- PROC GETNUMBER
C:0177H LINE# 31
------- DO GETNUMBER
D:0028H SYMBOL line
C:0177H LINE# 34
C:0180H LINE# 35
C:0189H LINE# 36
C:0192H LINE# 37
------- ENDDO line
------- ENDPROC GETNUMBER
------- ENDMOD CSAMPLE2
------- MODULE CSAMPLE3
C:0000H SYMBOL _ICE_DUMMY_
D:0008H PUBLIC dummy_buffer
C:01A3H PUBLIC _output
------- PROC _OUTPUT
D:0006H SYMBOL number
C:01A3H LINE# 11
C:01A3H LINE# 12
C:01B0H LINE# 13
------- ENDPROC _OUTPUT
------- ENDMOD CSAMPLE3
------- MODULE ?C?CLDPTR
C:01CBH PUBLIC ?C?CLDPTR
------- ENDMOD ?C?CLDPTR
------- MODULE ?C?CSTPTR
C:01E4H PUBLIC ?C?CSTPTR
------- ENDMOD ?C?CSTPTR
------- MODULE ?C?IMUL
C:01F6H PUBLIC ?C?IMUL
------- ENDMOD ?C?IMUL
------- MODULE PRINTF
D:0050H PUBLIC ?_PRINTF517?BYTE
D:0050H PUBLIC ?_PRINTF?BYTE
D:0050H PUBLIC ?_SPRINTF517?BYTE
D:0050H PUBLIC ?_SPRINTF?BYTE
C:02CFH PUBLIC _PRINTF
C:02CFH PUBLIC _PRINTF517
C:02C9H PUBLIC _SPRINTF
C:02C9H PUBLIC _SPRINTF517
------- ENDMOD PRINTF
------- MODULE GETCHAR
B:0021H.0 PUBLIC ?C?CHARLOADED
D:0023H PUBLIC ?_UNGETCHAR?BYTE
C:05C0H PUBLIC GETCHAR
------- ENDMOD GETCHAR
------- MODULE ?C?CLDOPTR
C:020AH PUBLIC ?C?CLDOPTR
------- ENDMOD ?C?CLDOPTR
BL51 BANKED LINKER/LOCATER V3.52 07/09/95 11:23:19 PAGE 5
------- MODULE ?C?PLDIIDATA
C:0237H PUBLIC ?C?PLDIIDATA
------- ENDMOD ?C?PLDIIDATA
------- MODULE ?C?CCASE
C:0247H PUBLIC ?C?CCASE
------- ENDMOD ?C?CCASE
------- MODULE PUTCHAR
C:05D1H PUBLIC _PUTCHAR
------- ENDMOD PUTCHAR
------- MODULE _GETKEY
C:05F8H PUBLIC _GETKEY
------- ENDMOD _GETKEY
FUNCTION REGISTER MASKS
FUNCTION . . . . . . REG MASK
-----------------------------
GETNUMBER. . . . . . @0xbfff
MAIN . . . . . . . . @0xbfff
_ATOI. . . . . . . . @0xb7ff
_GETLINE . . . . . . @0xbfff
_OUTPUT. . . . . . . @0xbfff
INTER-MODULE CROSS-REFERENCE LISTING
------------------------------------
NAME . . . . . . . USAGE MODULE NAMES
----------------------------------------
?C?CCASE . . . . . CODE; ?C?CCASE PRINTF
?C?CHARLOADED. . . BIT; GETCHAR
?C?CLDOPTR . . . . CODE; ?C?CLDOPTR PRINTF
?C?CLDPTR. . . . . CODE; ?C?CLDPTR CSAMPLE2 PRINTF
?C?CSTPTR. . . . . CODE; ?C?CSTPTR CSAMPLE2 PRINTF
?C?IMUL. . . . . . CODE; ?C?IMUL CSAMPLE2
?C?PLDIIDATA . . . CODE; ?C?PLDIIDATA PRINTF
?C_START . . . . . CODE; ** L51 GENERATED ** ?C_STARTUP
?C_STARTUP . . . . CODE; ?C_STARTUP CSAMPLE1
?_PRINTF517?BYTE . DATA; PRINTF
?_PRINTF?BYTE. . . DATA; PRINTF CSAMPLE1 CSAMPLE2 CSAMPLE3
?_SPRINTF517?BYTE. DATA; PRINTF
?_SPRINTF?BYTE . . DATA; PRINTF
?_UNGETCHAR?BYTE . DATA; GETCHAR
DUMMY_BUFFER . . . DATA; CSAMPLE3
GETCHAR. . . . . . CODE; GETCHAR CSAMPLE1 CSAMPLE2
GETNUMBER. . . . . CODE; CSAMPLE2 CSAMPLE1
MAIN . . . . . . . CODE; CSAMPLE1
_ATOI. . . . . . . CODE; CSAMPLE2
_GETKEY. . . . . . CODE; _GETKEY GETCHAR
_GETLINE . . . . . CODE; CSAMPLE2
_OUTPUT. . . . . . CODE; CSAMPLE3 CSAMPLE1
_PRINTF. . . . . . CODE; PRINTF CSAMPLE1 CSAMPLE2 CSAMPLE3
_PRINTF517 . . . . CODE; PRINTF
_PUTCHAR . . . . . CODE; PUTCHAR GETCHAR PRINTF
BL51 BANKED LINKER/LOCATER V3.52 07/09/95 11:23:19 PAGE 6
_SPRINTF . . . . . CODE; PRINTF
_SPRINTF517. . . . CODE; PRINTF
LINK/LOCATE RUN COMPLETE. 0 WARNING(S), 0 ERROR(S)