Jump to content

0

minimum amount of assembly to init suzy and display full screen sprite


2 replies to this topic

#1 Wookie OFFLINE  

Wookie

    Chopper Commander

  • 191 posts
  • Location:Seattle, WA

Posted Mon Jan 17, 2011 3:13 PM

Assuming the the only initialization of the Lynx is as follows:
	// 1. force Mikey to be in memory
	lda #0
	sta MIKEY_MEMORY_MAP_CONTROL

	// 2. set IODIR the way Mikey ROM does, also force AUDIN to output
	lda #010011	
	sta MIKEY_IO_DIRECTION

	// 3. set ComLynx to open collector
	lda #000100
	sta MIKEY_SERIAL_CONTROL

	// 4. make sure the ROM is powered on
	lda #001000
	sta MIKEY_IO_DATA

What would be the minimum amount of assembly to init suzy and display, full screen, a sprite located at 0x0500?  I'm trying to add a simple splash screen to my secondary loader so that something gets on the screen ASAP.  I thought I'd ask you guys since you're all pretty good at this stuff.

(BTW, I could figure this out for myself, but I wanted to see if anybody had a clever way to do this in a minimal amount of code.)

--Wookie

Edited by Wookie, Mon Jan 17, 2011 3:14 PM.


#2 sage OFFLINE  

sage

    Dragonstomper

  • 518 posts
  • Location:Germany

Posted Mon Jan 17, 2011 3:46 PM

View PostWookie, on Mon Jan 17, 2011 3:13 PM, said:

Assuming the the only initialization of the Lynx is as follows:
	// 1. force Mikey to be in memory
	lda #0
	sta MIKEY_MEMORY_MAP_CONTROL

	// 2. set IODIR the way Mikey ROM does, also force AUDIN to output
	lda #010011	
	sta MIKEY_IO_DIRECTION

	// 3. set ComLynx to open collector
	lda #000100
	sta MIKEY_SERIAL_CONTROL

	// 4. make sure the ROM is powered on
	lda #001000
	sta MIKEY_IO_DATA

What would be the minimum amount of assembly to init suzy and display, full screen, a sprite located at 0x0500?  I'm trying to add a simple splash screen to my secondary loader so that something gets on the screen ASAP.  I thought I'd ask you guys since you're all pretty good at this stuff.

(BTW, I could figure this out for myself, but I wanted to see if anybody had a clever way to do this in a minimal amount of code.)

--Wookie

-> maybe check the EPYX loader code?
Then you are sure it is working

#3 LX.NET OFFLINE  

LX.NET

    Chopper Commander

  • 229 posts

Posted Wed Mar 16, 2011 1:48 PM

View PostWookie, on Mon Jan 17, 2011 3:13 PM, said:

Assuming the the only initialization of the Lynx is as follows:
	// 1. force Mikey to be in memory
	lda #0
	sta MIKEY_MEMORY_MAP_CONTROL

	// 2. set IODIR the way Mikey ROM does, also force AUDIN to output
	lda #010011	
	sta MIKEY_IO_DIRECTION

	// 3. set ComLynx to open collector
	lda #000100
	sta MIKEY_SERIAL_CONTROL

	// 4. make sure the ROM is powered on
	lda #001000
	sta MIKEY_IO_DATA

What would be the minimum amount of assembly to init suzy and display, full screen, a sprite located at 0x0500?  I'm trying to add a simple splash screen to my secondary loader so that something gets on the screen ASAP.  I thought I'd ask you guys since you're all pretty good at this stuff.

(BTW, I could figure this out for myself, but I wanted to see if anybody had a clever way to do this in a minimal amount of code.)

--Wookie

Although I have no actual Lynx programming experience I do know that the Epyx Handy documentation has a set of required steps you need to follow to ensure correct initialization for drawing sprites:
Sprite Initialization




0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users