문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top