IECHost fast transfer finished

I had a chance to finish the first iteration of the fast two-bit protocol to quickly transfer data between IECHost and a Commodore drive over the IEC bus!

Here’s a snippet of my drive code (the “Hello World server”):

; Main loop on the drive
	jsr readbyte
	cmp #'h'
	bne mloop

	lda #hmsge-hellomsg	; number of bytes that we'll be sending
	jsr sendbyte

	ldx #hmsge-hellomsg
	stx $06

	ldx $06
	lda hellomsg-1,x	; send message to IECHost using the fast protocol
	jsr sendbyte
	dec $06
	bne sendhello

	beq mloop

	.text "!DLROW OLLEH"

And here’s my code on the IECHost side (the “Hello World client”):

	fastaccess_send_byte('h');		/* Send the 'h' command */

	n = fastaccess_receive_byte();	/* Read the length of the message */

	do {							/* Read the message */
	} while (--n);


As IECHost is significantly faster than a Commodore 64 I can achieve even faster transfer speeds than the ones I am getting during this first iteration, which uses a pretty standard two-bit protocol over the IEC bus.

We shall see how it goes 🙂

About Luigi Di Fraia

I am a Senior DevOps Engineer so I get to work with the latest technologies and open-source software. However, in my private time I enjoy retro-computing.
This entry was posted in Retrocomputing, Technical and tagged , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s