Domanda

I am using Microsoft's ancient m80 macro assembler and haven't run into any major problems for a while.

However, I am now trying to use the ORG directive with a hex number and it fails.

This works:

;; Tell the assembler that this is z80 code                                                                                                          
.Z80

;; Start program after zero page                                                                                                                     
ASEG
ORG     100h

However, this does not work:

;; Set assembler to B00
ORG     B00h

m80 claims it's a fatal error:

I>A:M80 =TEST/M
%No END statement
U                                       ORG     B00h
%No END statement

1 Fatal error(s)

How can I use the ORG directive with a number that contains digits above 9?

What am I missing?

È stato utile?

Soluzione

You need a leading zero, e.g. ORG 0B00h, otherwise it just looks like an arbitrary symbol, rather than a hex constant.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top