flat assembler
Message board for the users of flat assembler.

Index > Projects and Ideas > [solved] troubleshooting cp/m-86 programing

Author
Thread Post new topic Reply to topic
connor



Joined: 07 Jun 2016
Posts: 79
connor 20 Feb 2019, 06:37
Ive been trying out assembly programing in CP/M-86

i go as far as making a .cmd file

but when i run it nothing happens

ctrl+c dosnt work.

it happens with any program i write

not just with gencmd but with link-86

what is going on here?

heres my program:

ORG 0100H
END

_________________
cars tech weed bitches country & thug life
Post 20 Feb 2019, 06:37
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20416
Location: In your JS exploiting you and your system
revolution 20 Feb 2019, 06:47
Your code appears to be completely empty, there are no instructions there. At the very least you will need something to return back to the OS. I haven't looked at the CP/M-86 spec but it might be "int 0x20" or "ret" or something. Once you get your code exiting properly you can then move on to a simple "Hello world!" application.


Last edited by revolution on 21 Feb 2019, 06:03; edited 1 time in total
Post 20 Feb 2019, 06:47
View user's profile Send private message Visit poster's website Reply with quote
connor



Joined: 07 Jun 2016
Posts: 79
connor 20 Feb 2019, 07:13
setting the origin

and exit back to cpm

is all i'm trying to do

the interrupt your talking about

might be

int 224

_________________
cars tech weed bitches country & thug life
Post 20 Feb 2019, 07:13
View user's profile Send private message Reply with quote
connor



Joined: 07 Jun 2016
Posts: 79
connor 21 Feb 2019, 05:54
OK HERE WE GO I FIGURED IT OUT:

;the simplest program you can make in cp/m-86
org 0100h
xor cx,cx ; warm boot reset
int 224 ;bdos recall
end

; it works only in this way
; y'all can figure where to go from here
Post 21 Feb 2019, 05:54
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.