Author Topic: Can you convert ASM86 (CP/M-86) code to NASM?  (Read 11456 times)

Offline Luposian

  • Jr. Member
  • *
  • Posts: 2
Can you convert ASM86 (CP/M-86) code to NASM?
« on: August 12, 2019, 07:41:41 AM »
Is there any way to easily "port" (convert) such code to NASM?

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: Can you convert ASM86 (CP/M-86) code to NASM?
« Reply #1 on: August 12, 2019, 09:42:39 PM »
Hi Luposian,

Welcome to the Forum.

I don't know if you'd call it "easy", but we can produce CPM86 code with Nasm. Unfortunately, I've lost the examples I used to have. Show us what you've got and we'll try to help.

Best.
Frank


Offline Luposian

  • Jr. Member
  • *
  • Posts: 2
Re: Can you convert ASM86 (CP/M-86) code to NASM?
« Reply #2 on: August 12, 2019, 10:36:07 PM »
Hi Luposian,

Welcome to the Forum.

I don't know if you'd call it "easy", but we can produce CPM86 code with Nasm. Unfortunately, I've lost the examples I used to have. Show us what you've got and we'll try to help.

Best.
Frank

I don’t want to create ASM86 code in NASM, I want to create NASM versions of ASM86 code.  :-D

Problem is, I have no examples, because I’m not a programmer.  Just hoping to discover if anyone has done it or knows how to.
« Last Edit: August 12, 2019, 10:38:13 PM by Luposian »

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: Can you convert ASM86 (CP/M-86) code to NASM?
« Reply #3 on: August 13, 2019, 12:39:35 AM »
Ahhhh...

ASM86 syntax is not Nasm syntax.

I have written code in Nasm that will run in CP/M-86, but  I do not remember how at the moment.

If you are not a programmer - at least temporarily - you probably can't do it.

Best,
Frank