WritersBeat.com (http://forums.writersbeat.com/index.php)
-   Research Section (http://forums.writersbeat.com/forumdisplay.php?f=122)
-   -   MS DOS style writing (http://forums.writersbeat.com/showthread.php?t=55584)

LaurenKing 01-01-2015 09:59 AM

MS DOS style writing
Well, upon including a malevolent AI in my books, I now need to know how to write for it. Originally, it just thought and spoke like any other character, but then I had an idea: the AI should think in a language similar to the command lines in MS DOS. Unfortunately, I have never actually used DOS, and Google hasn't told me anything about the formatting.
Right now I need help on something that would look like DOS trying to access a 'file' (actually a memory in a person's mind), create a file and folder, then transfer the person (thought of as a folder containing memories and personalities) into that folder. ACan anyone help?

max crash 01-01-2015 01:19 PM

I just went to look for my DOS manuals and it has been so long they have been moved from needed shelf space to a box somewhere .

it's also been a long time since I have written Dos


goal equal "what ever"
load a register address, "start address"
point one
go to a register
load b register, a register
add '1' to a register
perform b register, store c register
if results c register equal "goal"
(indent) then output d register
(indent) (indent) end program
(indent) else go to point one

it's been along time, and this is not correct, but this is basically what I remember of the DOS format for searching a file for certain data.

I also doubt that anyone but Sheldon Cooper would know the difference.

hope that helps

this is not formatting properly the then and end and else are indented as they are part of the if-then-else statement. which is a single command. and does not have (indent) written in it.


LaurenKing 01-01-2015 03:08 PM

Hm, that looks a lot like the programs I used to do in PASCAL. Thanks, that really helps!

max crash 01-01-2015 04:01 PM

languages haven't changed that much, just how many things a control word will do, it not like binary, or machine code which hasn't changed at all.

000010 010100 000101 000010 010100 000101

Bye Bye


jimmymc 01-01-2015 04:35 PM

DOS: An operating system only someone else's mother could love.


LaurenKing 01-01-2015 05:23 PM

Yeah, I ended up going with something that looked like DOS/PASCAL, and making up my own keywords.
@jimmymc And also, yep, that's the goal. Since the AI speaks like a person, I wanted to have some inhuman aspect about it's thought. DOS seems to be pretty annoying to work with, so I think it fits perfectly.

max crash 01-02-2015 07:30 AM

good choice


sqoo 12-04-2017 06:01 AM

DOS doesn't really have much in the way of instructions, you might find the Unix shell commands have a little more commands that you can use to express things, here is a description of a Unix shell command list https://ss64.com/bash/

DOS commands tend to be verb noun (noun) e.g.

COPY c:\location\filename.txt c:\newlocation\newfilename.txt

MOVE, DELETE are similar

to execute a program, you just use its name so that might not be apparent but you can put CALL in front e.g.

CALL evilpurpose.exe

Wikipedia has a slit of commands here https://en.wikipedia.org/wiki/List_of_DOS_commands

All times are GMT -8. The time now is 12:13 PM.

vBulletin, Copyright 2000-2006, Jelsoft Enterprises Ltd.