Assembly information

Pagina 3/5
1 | 2 | | 4 | 5

Van LeandroCorreia

Paladin (955)

afbeelding van LeandroCorreia

26-11-2004, 17:45

To Maggoo,

Just C would be enough for a Wonderboy-like game?

Van Thom

Paladin (691)

afbeelding van Thom

26-11-2004, 17:50

What's Init32 (again, remove the space)?

Van LeandroCorreia

Paladin (955)

afbeelding van LeandroCorreia

26-11-2004, 17:51

Init32 = Call the routine to use screen 1. I guess. Tongue

So, let´s start again...

To access screen1, the Z80 must call a routine that´s already built in BIOS, right?

Van Maggoo

Paragon (1216)

afbeelding van Maggoo

26-11-2004, 17:58

To Maggoo,

Just C would be enough for a Wonderboy-like game?

Actually, I would avoid C as much as I can on MSX. Go 100% assembly if you can.

If you really want to make a game and don't want to do assembly, then just use Nestor Basic or Kun Basic. They are high level language (basic) and it's possible to make nice games with those.

Otherwise don't even bother (you'll be dissapointed anyway) and make something in Blitz Basic for PC Smile

Van Maggoo

Paragon (1216)

afbeelding van Maggoo

26-11-2004, 18:03

Init32 = Call the routine to use screen 1. I guess. Tongue

So, let´s start again...

To access screen1, the Z80 must call a routine that´s already built in BIOS, right?

Right, that would be routine #5F of the BIOS.

Van sjoerd

Hero (602)

afbeelding van sjoerd

26-11-2004, 18:04

  call INIT32

^ space before instructions and indeed labels can't contain spaces Smile

Van LeandroCorreia

Paladin (955)

afbeelding van LeandroCorreia

26-11-2004, 18:10

Now it works...

.bios 
.page 1 
.rom
.start MY_PROGRAM 

MY_PROGRAM:
Init32 equ 7bh
call Init32

What the heck the Init32 equ 7bh means?

Van Maggoo

Paragon (1216)

afbeelding van Maggoo

26-11-2004, 18:15

Now it works...

.bios 
.page 1 
.rom
.start MY_PROGRAM 

MY_PROGRAM:
Init32 equ 7bh
call Init32

What the heck the Init32 equ 7bh means?

it means

Init32=7bh

You could also have this

MY_PROGRAM:
call 7bh

it produces the same result

Van LeandroCorreia

Paladin (955)

afbeelding van LeandroCorreia

26-11-2004, 18:23

So, the Init32 in the Call Init32 means nothing. It's just a pointer. Tongue
I really have to learn a lot. Smile

Van [D-Tail]

Ascended (8259)

afbeelding van [D-Tail]

26-11-2004, 18:41

ASM call == BASIC gosub Smile
ASM jp/jr == BASIC goto Smile

that's more or less equivalents. When you write down:

INIT32 equ 7Bh
call INIT32

you're implying this:

let INIT32=&h7B: gosub INIT32

Hope that clears up a lot Wink

Pagina 3/5
1 | 2 | | 4 | 5