Hi,
ich wollte mal die Lauflichtsteuerung mit Keil simulieren. Bekomme aber einen Fehler den ich nicht zuordnen kann.
Programm
;***************************************
;
;Lauflicht mit Unterprogramm Zeit
;Version 1.0
;
;***************************************
org 00h
ajmp 100h
org 100h
mov b,#0feh
go: mov a,p3
anl a,#03h
jz lese ;an p3 steht eine 00h
dec a ;vermindere accu um 1
jz links ;an p3 steht eine 01h
dec a
jz rechts ;an p3 steht eine 02h
jmp out ;an p3 steht eine 03h
links: mov a,b ;bringe b zu a
rl a ;rotiere accuinhalt geschlossen um 1 nach links
mov b,a
jmp out
rechts: mov a,b
rr a
mov b,a
out: mov p2,b
call zeit
jmp go
lese: mov b,p0
jmp out ;springe nach out
org 200h
zeit: mov dptr,#0ffffh
loop: nop
nop
djnz dpl,loop
djnz dph,loop
ret
end
Fehler
"test_ide.obj"
TO "lauflicht"
*** FATAL ERROR L211: I/O ERROR ON OUTPUT FILE:
EXCEPTION 0029H: ACCESS TO FILE DENIED
FILE: lauflicht
Target not created
Meine Frage:
Woran kann das liegen, was hab ich falsch gemacht?
ich wollte mal die Lauflichtsteuerung mit Keil simulieren. Bekomme aber einen Fehler den ich nicht zuordnen kann.
Programm
;***************************************
;
;Lauflicht mit Unterprogramm Zeit
;Version 1.0
;
;***************************************
org 00h
ajmp 100h
org 100h
mov b,#0feh
go: mov a,p3
anl a,#03h
jz lese ;an p3 steht eine 00h
dec a ;vermindere accu um 1
jz links ;an p3 steht eine 01h
dec a
jz rechts ;an p3 steht eine 02h
jmp out ;an p3 steht eine 03h
links: mov a,b ;bringe b zu a
rl a ;rotiere accuinhalt geschlossen um 1 nach links
mov b,a
jmp out
rechts: mov a,b
rr a
mov b,a
out: mov p2,b
call zeit
jmp go
lese: mov b,p0
jmp out ;springe nach out
org 200h
zeit: mov dptr,#0ffffh
loop: nop
nop
djnz dpl,loop
djnz dph,loop
ret
end
Fehler
"test_ide.obj"
TO "lauflicht"
*** FATAL ERROR L211: I/O ERROR ON OUTPUT FILE:
EXCEPTION 0029H: ACCESS TO FILE DENIED
FILE: lauflicht
Target not created
Meine Frage:
Woran kann das liegen, was hab ich falsch gemacht?