You are not logged in -
nap
CSDb User Forums
Forums
>
C64 Coding
>
using UP9600 in prog8
2019-06-19
11:13
Bones99
Registered: May 2005
Posts: 30
using UP9600 in prog8
Hi
Hopefully someone can help me with this.
Basically, I'm trying to do this:
10 rem sys51200
20 OPEN 5,2,0,CHR$(14)
30 GET#5,A$:IF A$<>""THEN PRINT A$;
40 GETA$:IF A$<>""THEN PRINT#5,A$;
45 poke53280,a
50 GOTO 30
in prog8 (
https://prog8.readthedocs.io/en/latest/index.html
)
I think its going to be something like this :
sub Setup() {
; -- init driver
c64scr.print("initializing driver.\n")
%asm {{ jsr 51200}}
c64scr.print("driver initialized.\n")
c64.SETLFS(5,2,0)
c64.SETNAM(???)
c64.OPEN()
}
but I realize that I dont fully understand what :
20 OPEN 5,2,0,CHR$(14)
is doing, in particular, the chr$(14) part.
Thanks for your time.
2019-06-19
12:23
Bones99
Registered: May 2005
Posts: 30
ok, I think I get it..
sub Setup() {
; -- init driver
c64scr.print("initializing driver.\n")
%asm {{ jsr 51200}}
c64scr.print("driver initialized.\n")
c64.SETLFS(5,2,0)
c64.SETNAM(2,"14")
c64.OPEN()
}
setnam expects the length of a string for the baud rate settings and then the acutal string is the baud,data bit,stop bits all or'ed togeather..?
The example above seems to connect to my python test server unsing VICE. I'll try it on my real c64 once I figure out how to read and write from/to the device I opened there.
Refresh
Subscribe to this thread:
You need to be logged in to post in the forum.
Search the forum:
Search
All forums
C64 Coding
C64 Composing
C64 Pixeling
C64 Productions
CSDb Bug Reports
CSDb Development
CSDb Discussions
CSDb Entries
CSDb Feedback
CSDb Info
CSDb moderators
CSDb Questions
Messages to moderators
Requests
for
in
Writer & text
Text
Writer
All times are CET.
Search CSDb
All
Releases
Groups
Sceners
Events
BBS
SIDs
-------
Forum
Comments
Advanced
Users Online
instant
cobbpg
WVL/Xenon
Hagar/The Supply Team
Guests online: 128
Top Demos
1
Next Level
(9.7)
2
13:37
(9.7)
3
Mojo
(9.7)
4
Coma Light 13
(9.6)
5
Edge of Disgrace
(9.6)
6
What Is The Matrix 2
(9.6)
7
The Demo Coder
(9.6)
8
Uncensored
(9.6)
9
Comaland 100%
(9.6)
10
Wonderland XIV
(9.6)
Top onefile Demos
1
Layers
(9.6)
2
No Listen
(9.6)
3
Party Elk 2
(9.6)
4
Cubic Dream
(9.6)
5
Copper Booze
(9.6)
6
Rainbow Connection
(9.5)
7
Dawnfall V1.1
(9.5)
8
Onscreen 5k
(9.5)
9
Morph
(9.5)
10
Libertongo
(9.5)
Top Groups
1
Performers
(9.3)
2
Booze Design
(9.3)
3
Oxyron
(9.3)
4
Triad
(9.3)
5
Censor Design
(9.3)
Top Webmasters
1
Slaygon
(9.6)
2
Perff
(9.6)
3
Sabbi
(9.5)
4
Morpheus
(9.4)
5
CreaMD
(9.1)
Home
-
Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.033 sec.