flat assembler
Message board for the users of flat assembler.

flat assembler > Heap > The most powerful high level programming language is ...

Author
Thread Post new topic Reply to topic
yeohhs



Joined: 19 Jan 2004
Posts: 170
Location: N 5.43564° E 100.3091°
not for programming computers but to program the human mind. Wink

_________________
“It’s not that we have a short time to live, but that we waste a lot of it.”
-Lucius Annaeus Seneca
Post 12 Feb 2018, 02:48
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 15904
Location: SDSS J140821.67+025733.2
yeohhs wrote:
... to program the human mind.
Wot?
Post 12 Feb 2018, 04:18
View user's profile Send private message Visit poster's website Reply with quote
Furs



Joined: 04 Mar 2016
Posts: 1201
I think he means a programming language that can program a human mind is the most powerful, compared to those used for programming computers.

But can the human mind even be programmed? Neural Networks work by training and learning, I can't call that a "programming language".
Post 12 Feb 2018, 13:15
View user's profile Send private message Reply with quote
yeohhs



Joined: 19 Jan 2004
Posts: 170
Location: N 5.43564° E 100.3091°
Neuro-linguistic programming Smile

_________________
“It’s not that we have a short time to live, but that we waste a lot of it.”
-Lucius Annaeus Seneca
Post 13 Feb 2018, 12:27
View user's profile Send private message Visit poster's website Reply with quote
Coty



Joined: 17 May 2010
Posts: 540
Location: ␀
NOP
Post 13 Feb 2018, 23:52
View user's profile Send private message Send e-mail Visit poster's website AIM Address Reply with quote
Coty



Joined: 17 May 2010
Posts: 540
Location: ␀
Well... I'm ashamed to admit it... I spent all evening working on this crap. here is the most powerful "language" you will ever use. Rolling Eyes

Code:
#!/usr/bin/env python
#
#  nopSembler.py -- Written by Coty R Miller 13/FEB/17
#
#  usage: nopSembler.py hello.asm
#
#  Out puts "nops.bin"
#
#  "You can use any instruction you want, as long as it's NOP!"
#==================================================================
import sys
import binascii


binary = ['00000000']*30
bc = 0
Instructions = {"NOP" : '10010000'}
Comments = ";"

print "NOP Assembler version: nop"   # We are NOP!

if len(sys.argv) > 1:                # If user provided a file name.
    file2load = sys.argv[1]          # Find desired file to load
    
    try:                             # TRY to...
        myfile = open(file2load)     # Load the file.
    except IOError as e:             # If we can't find it, error.
        print "Could nop load file! '%s' Check the file name." % (file2load)
    else:
        # Make an ugly buffer!
        ASMFile = [""]*30
        a = 0
        # Sift the file and omit new lines!
        for line in myfile:
            tmpLine = " "
            symbolsToOmit = "\n"
            # We only load 1 line at a time!
            for i in line:
                if(i not in symbolsToOmit):
                    tmpLine+=i
            # Give afor mentioned read line it's own string!
            ASMFile[a] = tmpLine
            a = a + 1 # Increment a!
            
        # Break apart all of the lines!
        codePoint = [] # A buffer!

        # Parse the File!
        for i in range(0, len(ASMFile)):
            line = ASMFile[i].split(" ")
            
            # Parse the Line!
            alreadyUsedOpCodeOnLine = 0
            for j in range(0, len(line)):
                # Check for comments!
                if line[j] == Comments:
                    break
                # Check for empty Spaces!
                elif line[j] != "":
                    # Check for instructions!
                    if line[j] in Instructions:
                        # Check if an NOP was already used on the line!
                        if alreadyUsedOpCodeOnLine == 0:
                            # Do the thing!
                            binary[bc] = Instructions[line[j]]
                            bc = bc + 1
                            alreadyUsedOpCodeOnLine = 1
                        else:
                            print "ERROR ON LINE", i+1, "ONLY ONE NOP PER LINE!"
                    else:
                        print "ERROR ON LINE", i+1, "You can use any opcode you want as long as it's NOP!"
                        sys.exit(0)
        # Export the binary.
        h = 0
        # Open the file
        outputFile = open("nops.bin","wb")

        # Count the opcodes!
        for i in range(0, 29):
            if binary[i] != '00000000':
                h = h + 1

        # Put up with pythons ugly binary file writting BS
        for i in range(0, h):
            a = binary[i]
            byte = int(a, 2)
            outputFile.write("%c" % byte)

        # Ensured the file is saved!
        outputFile.close()
else:
    print "No system argument used."

#end    


and here... is an example file...

Code:
; NOP
    NOP
    NOP
    NOP
    NOP ; lol
; OMG This actually works...
    NOP
    


And here is a file of it working...


Description: this is depressing...
Filesize: 126.42 KB
Viewed: 713 Time(s)

Screen Shot 2018-02-13 at 11.34.30 PM.png


Post 14 Feb 2018, 04:38
View user's profile Send private message Send e-mail Visit poster's website AIM Address Reply with quote
yeohhs



Joined: 19 Jan 2004
Posts: 170
Location: N 5.43564° E 100.3091°
Smile

_________________
“It’s not that we have a short time to live, but that we waste a lot of it.”
-Lucius Annaeus Seneca
Post 14 Feb 2018, 05:30
View user's profile Send private message Visit poster's website Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 7394
Location: ˛                              ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣ Posts: 6699
yeohhs wrote:
not for programming computers but to program the human mind. Wink


advertisement, tv, brochures, words symbols, any kinda of input that keeps on persuade us to do the next very important thing, buy all these, must have, etc

they could flash maze solution to mice, sooner or later, they could flash memories into our brain, Embarassed

how bad is that, it is not so bad actually, how we not know, we been flashed countless times already? at least now we could somehow choose, what to flash
Post 14 Feb 2018, 13:22
View user's profile Send private message Reply with quote
yeohhs



Joined: 19 Jan 2004
Posts: 170
Location: N 5.43564° E 100.3091°
sleepsleep wrote:
how bad is that, it is not so bad actually, how we not know, we been flashed countless times already? at least now we could somehow choose, what to flash


Smile You are right!

_________________
“It’s not that we have a short time to live, but that we waste a lot of it.”
-Lucius Annaeus Seneca
Post 15 Feb 2018, 09:57
View user's profile Send private message Visit poster's website 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 can attach files in this forum
You can download files in this forum


Copyright © 1999-2018, Tomasz Grysztar.

Powered by rwasa.