내가 쓴 간단한 프로그램에 대해 조금 혼란 스럽다. 한 문자 만 인쇄 한 후 왜 종료되는지 설명 해주십시오. 매 5 초마다 문자를 인쇄합니다. 감사합니다. advance시계가 pdp-11에
tks = 177560
tkb = 177562
tps = 177564
tpb = 177566
lcs = 177546
. = torg + 2000
main: mov #main, sp
mov #clock, @#100 ; vector interrupt of the clock 100-102
mov #300, @#102 ;
mov #100, @#lcs ; here I enable interrupt-enable of the clock
prog: clr r0 ; here endless loop
beq prog
halt
clock: inc count
cmp count, timeout
bne clk_end
clr count
mov #'*, @#tpb
clk_end:rti
. = torg + 3000
timeout: .word 300000
count: .word 0
PDP11? 실제 하드웨어가 있거나 시뮬레이터를 사용하고 있습니까? –
@ theatrus : 시뮬레이터 – helloWorld
시뮬레이터를 사용하고 있습니다. 오늘의 질문입니다. –