Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

I AM INVENTING A NEW SHELL

Name: Anonymous 2006-05-24 2:23

I like 6502 ASM.  I think it should be a scriptable shell language.  I will call it 6502ASMSH.  It will kick ass.

The 64k address space/6502 registers would be usuable as script variables, and is accessible using standard 6502 instructions.  Environment variables, the command line, shell option variables, filesystem, etc. also appear in the address space.

I just don't quite know how I will implement external program invocation ... should i introduce a new mnemonic or use an existing mnemoic or even a memory address ...

Name: Anonymous 2006-05-24 2:56

ya

Name: Anonymous 2006-05-24 2:57 (sage)

オ リリー

Name: Anonymous 2006-05-24 15:00

gl

Name: Anonymous 2006-05-24 15:13

hv

Name: Anonymous 2006-05-24 16:14

where can I buy it once you are done

Name: Anonymous 2006-05-24 21:11

>>6
open source dawg

i've figured a couple of things out:
there will be several zero page pointers/locations that define regions of 6502 address space that have effects when accessed.

$00 Execution gate
 : writing a value here determines flag value, when flag value is written, command+environment as specified in following pointers will be executed.
$01-$02 Pointer to command line zstring
 : whatever is pointed to here is sent as command line when command is invoked
$03-$04 Pointer to environment string table
 : series of zstrings which are environment table, table ends with two nulls.
$05-$06 Pointer to file descriptors
 : first three are stdin, stdout, stderr, writing/reading these bytes send bytes to the respective file descriptors, i.e. { LDA #$33, LDY #1, STA($04),Y } shoves a ! to stdout.

something like that.

Name: Anonymous 2006-05-25 1:24

>>7

nothing is easy anymore

Name: Anonymous 2006-05-25 1:30

fapfapfap

Name: Anonymous 2006-05-25 4:42

Make it so it can run on old nintendo/famicom systems.

Name: Anonymous 2006-05-25 21:14

>>10
NO.
It is not an emulator.  It is a SHELL.  The point of it is to use 6502 mnemonics and a simulated memory map to formulate data structures (command line arguments, filename, environment) required for program execution.

Name: Anonymous 2006-05-26 15:20

So whereas in bash, you'd say a pithy "exec /usr/bin/feh -FZ -D 5 /pr0n/necroxenohomopedozoophilia/jan2006/w1/goats/*", in this grand ultimate 6502 you'd go like...

[c]
LDA #cmdstart.low
STA $e0
LDA #cmdstart.high
STA $e1
LDA #$bitmask_that_says_exec
STA $01
LDA #$bitmask_that_causes_shit_to_be_done
STA $00
RTS

cmdstart: dc.b "the command you wants to be runnings"
[/c]

Your ideas are intriguing and I would like to subscribe to your newsletter!

Name: Anonymous 2006-05-27 4:26

>>12
You have the general idea.

Although the more and more I think about this, I think it would be better to have a separate keyword that isn't an official 6502 mnemonic that actually begins the invocation of the command, rather than having a write to a 6502 memory space location trigger it.

Example:
[c]
$0500 .ASC "exec /usr/bin/feh -FZ -D 5 /pr0n/necro...goats/*"
 ; this will write the string at $0500
.BYTE $00
 ; terminating zero
LDA #$00   ; $0500 low byte
STA $01    ; into low byte of $01-$02 pointer
LDA #$05   ; $0500 high byte
STA $02    ; into high byte of $01-$02 pointer
 ; $01-$02 now points to $0500
EXE ; this would be the keyword that starts command execution
[/c]

Oh, and of course we would implement aliasing so that one keyword of the user's choice can stand for a whole set of commands, with argument support, etc.


Name: Anonymous 2006-05-27 6:22

Sounds like crap; glad it's only a shitty troll.

Name: Anonymous 2006-05-27 17:32

>>13
So can we program for this shell with, say, cc65?

Name: Anonymous 2006-05-28 13:57

>>15
You could.  cc65 however, implements function calls rather ineffciently (it copies the entire stack and zero page on each function call) so such programs may be slow

Name: Anonymous 2006-05-28 16:24

assembly in shell, that's wonderful! do one for x86 instead and allow inline assembly and a command to show the registers!

Name: Anonymous 2006-05-29 1:24

maybe even a multi-asm shell whereby there could be plugins that allow any instruction set (x86, mips, ppc, arm, whatever)

Name: Anonymous 2006-05-29 1:59

can i rite viruz for shell?

Name: Anonymous 2006-05-29 7:05

>>19
echo "sudo rm -rf /" > viruz4shell.sh
done.

will work on many systems.

Name: Anonymous 2006-05-29 8:45

>>20
echo "sudo rm -rf /" >> ~/.bashrc

Name: Anonymous 2006-05-29 10:45

>>21
there is no point in putting that in the .bashrc. that way you destroy all the data, when you create a new bash-process. but: 1. it just works if you use bash. all smart people use zsh. 2. if you have the permissions as the user you are currently logged in, you can execute it immediately anyway. 3. you don't get a viruz that way. joey bishop.

Name: Anonymous 2006-05-29 12:37 (sage)

>>22
We don't want to punish smart users, now do we?

Name: Anonymous 2006-05-31 5:58

$ (:(){ :|:;};:)
try this ;)

Name: Anonymous 2006-05-31 6:25

>>24
ok ;((((((((((((((((((((((((((((((((99

Name: Anonymous 2006-05-31 7:02

>>23
Exactly

>>24
Won't hurt/easy to stop in my Windows box

Name: Anonymous 2006-05-31 8:25

>>25
one word: limits.

Name: Anonymous 2006-06-01 7:37

>>27
You mean two words and two slashes =\

Name: Anonymous 2006-06-01 11:03

>>28
gb2/vip/ ?

Name: Anonymous 2006-06-01 12:36

INTERNETS GETS I WOULD NOT USE SHELL IF NOT INTERNETS

MY SHELL ALUNSHELLKICKSASSOFALLOTHERSHELLSCAUSEITSLIKEEASYANDSHITLIKETHAT SHELL ITS MADE OF FIGHT

YOU CAN DLOADING WWW.THEBLUESOLUTION.CA

Name: Anonymous 2009-01-14 5:02

Program for small console or phone instead.

Name: Anonymous 2010-06-07 6:52

Hi, I can spam /prog/ too, you faggot.

Also, smoke weed everyday.

Name: Anonymous 2010-06-07 7:45

Im currious on how it went.

Name: Anonymous 2010-06-07 7:51

>>33
It didn't, this is /prog/.

Name: Anonymous 2010-06-07 8:39

double-necro

Name: Anonymous 2010-12-06 9:50

Back to /b/, ``GNAA Faggot''

Name: Sgt.Kabu憘ⶒkiman⹝᪡ 2012-05-28 18:57

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Name: Anonymous 2012-06-21 11:12

How interesting.

Don't change these.
Name: Email:
Entire Thread Thread List