At the moment I'm trying to get some small programs to run on the 1540 floppy disk or, better yet, the IEEE 2031 LP. I was able to run two programs successfully. One is an addition and the second is a multiplication. Both programs can be tried out in BASIC. The values to be added or multiplied are stored in line two and three. 7+9 or 7*9
The result can be taken from the memory dump.
Now my actual concern. Does anyone here in the forum have experience with implementing the program in assembler?
I would be very grateful for help.
Best regards, Sven
Code: Select all
0 printchr$(147)
1 open1,8,15
2 print#1,"m-w"chr$(15)chr$(3)chr$(1)chr$(7)
3 print#1,"m-w"chr$(16)chr$(3)chr$(1)chr$(9)
7 fori=0to12
8 read a
9 print#1,"m-w"chr$(i)chr$(3)chr$(1)chr$(a)
10 next
15 print#1,"m-e"chr$(0)chr$(3)
20 forx=15to17
25 print#1,"m-r"chr$(x)chr$(3)chr$(1)
30 get#1,a$
40 printasc(a$+chr$(0));
50 next
60 close1
65 end
70 data 120,24,173,15,3,109,16,3,141,17,3,88,96
Code: Select all
0 printchr$(147)
1 open1,8,15
2 print#1,"m-w"chr$(81)chr$(5)chr$(1)chr$(7)
3 print#1,"m-w"chr$(80)chr$(5)chr$(1)chr$(9)
7 fori=0to38
8 read a
9 print#1,"m-w"chr$(i)chr$(5)chr$(1)chr$(a)
10 next
15 print#1,"m-e"chr$(0)chr$(5)
20 forx=80to81
25 print#1,"m-r"chr$(x)chr$(5)chr$(1)
30 get#1,a$
40 printasc(a$+chr$(0));
50 next
60 close1
65 end
70 data 120,173,81,5,74,141,81,5,169,0,162
72 data 4,144,4,24,109,80,5,106,110,81,5,144
76 data 4,24,109,80,5,106,110,81,5,202,208
78 data 233,141,82,5,96