You are on page 1of 3

2009MCS

1
1. PROGRAM ROM 1000H-103FH data
1 5 data 2 EXTERNAL DATA
RAM 2000H
2 5 data 5 EXTERNAL DATARAM
3000H
3 data 2 5 255
4
ORG
1000H
DB
1,3,5,6,8,9,10,0,30,28 (,
)
ORG
00H

XDATA (2000H)=0AH, (2001H)=14H, (2002H)=00H,


(2003H)=(3CH),
XDATA (3000H)=06H, (3001H)=08H, (3002H)=0BH,
(3003H)=0DH, (3004H)=0EH, (3005H)=21H,
2. PROGRAM ROM 2000H-207FH data
EXTERNAL DATARAM
1 ROM 2000H-203FH data EXTERNAL DATA
RAM2540H-257FH
2 ROM 2040H-207FH data EXTERNAL DATA
RAM2500H-253FH

4
ORG
2000H
DB
1,3, (,
DATA)
ORG
203EH
DB
7,28H
ORG
2040H
DB
5,9AH, (, DATA)

ORG
207EH
DB
33H, 66H
ORG
00H

2
3. A register 8-bitSIGNED number

byte

byte

4. : f(n+1)=3*f(n)+1, n=0,1,2,,13, f(0)=0.


3-byte BCD SRAM 30-32Hn A register .

(A)=09H f(9)=10741, (30H)=01H, (31H)=07H, (32H)=41H.


, look-up table