Qbasicnews.com
July 20, 2019, 11:20:31 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: 1 [2]
  Print  
Author Topic: QBasic on WINDOWS 98 or XP  (Read 12694 times)
Ralph
Ancient Guru
****
Posts: 544


« Reply #15 on: February 27, 2007, 01:04:06 PM »

To continue with the anology, WINE (I guess it stands for WINdows Emlator) is a sort of Greek-to-Japanese translator that understands a limited amount of Japanese... sort of.
Logged

Ralph, using QuickBASIC 4.5 and Windows XP Home Edition and Service Pack 2, with HP LaserJet 4L printer.
Skyler
Ancient Guru
****
Posts: 564



« Reply #16 on: February 27, 2007, 02:00:50 PM »

It's a computer that translates Greek and Japanese. It works, but it has lots of bugs.
Logged

In the beginning, there is darkness the emptiness of a matrix waiting for the light. Then a single photon flares into existence. Then another. Soon, thousands more. Optronic pathways connect, subroutines emerge from the chaos, and a holographic consciousness is born." -The Doctor
Anonymous
Guest
« Reply #17 on: February 28, 2007, 01:28:42 PM »

yeah the only time you get commands like 'sky' in linux is if you were to have an executable, or (much more frequently)  a symbolic link to an executable in a global location. a common place would be like /usr/bin/sky

as skyler said, to run something in the same dir, you have to tell linux you want it to look in the current directory, './sky.whatever'

A lot of linux features could be added as different apps or shells, maybe some shell somewhere can be integrated with a file explorer-type app which would keep file associations (as explorer does on windows)

I don't know Greek nor Japanese.
Logged
Skyler
Ancient Guru
****
Posts: 564



« Reply #18 on: February 28, 2007, 02:11:17 PM »

Do you speak binary? Or assembler?
Logged

In the beginning, there is darkness the emptiness of a matrix waiting for the light. Then a single photon flares into existence. Then another. Soon, thousands more. Optronic pathways connect, subroutines emerge from the chaos, and a holographic consciousness is born." -The Doctor
Ralph
Ancient Guru
****
Posts: 544


« Reply #19 on: April 09, 2007, 05:26:46 PM »

Skyler, who are you asking the question on binary and/or assembler?  

Me, I know about the binary numbering system, and about the hexadecimal system used in programs such as DEBUG.exe to represent the various ASCII characters and such.

As to the Assembler language, well, I have a very small, basic understanding of it, again, from DEBUG.exe, but, it would be really difficult for me to put together any kind of small program in assembly language, so, don't count me in.
Logged

Ralph, using QuickBASIC 4.5 and Windows XP Home Edition and Service Pack 2, with HP LaserJet 4L printer.
Skyler
Ancient Guru
****
Posts: 564



« Reply #20 on: April 15, 2007, 10:21:33 PM »

I just found Debug in my digital circuits class last week. It's cool.
Logged

In the beginning, there is darkness the emptiness of a matrix waiting for the light. Then a single photon flares into existence. Then another. Soon, thousands more. Optronic pathways connect, subroutines emerge from the chaos, and a holographic consciousness is born." -The Doctor
Ralph
Ancient Guru
****
Posts: 544


« Reply #21 on: April 16, 2007, 12:49:06 AM »

Skyler:

I have a book, called "PC Magaziane, DOS Power Tools".  It is 1275 pages long. Chapter 4, starting on page 119, is all about hexadecimals, and starts using debug very quickly to produce very fast running .com programs.  One such is FormFeed.com, which does just that, and is 7-bytes long!  It can be called from within  QuickBASIC, for instance, by using
SHELL "FormFeed"
 assuming that program is in the currently-being-used folder, or dirctory.  The book is loaded with all kinds of useful utilities, most with the assembly language code to use with debug.exe to create a .com file.  If interested, I can post a few of these.  For starters, here is the code for Debug.exe, to produce the FormFeed.com file.  Once you start debug, a dash indicates that debug is waiting for you to enter something:

Code:

-N FormFeed.COM       'Name is FormFeed.COM
-RCX                            'call on Register CX to input the file's length.
CX   0000                    'CX has 0000, at present, and resonds with a
:7                                'colon, to which we answer 7, for file length
-W                               'next, we tell debug to Write the file to disk
Writing 0007 bytes     'debug reports that it is writing the 7 bytes
-Q                               'at debug's prompt, we finish with Quit

If we invoke debug, and, at debug's prompt, enter the above, we end up with the 7-byte long program, FormFeed.com.  How's that?
Oh, I don't remember if we can include the comments shown, in debug.

Debug allows assembling and unassembling.  To see the first 16  characters following address 100 (XXXX 0100), that is, all the characters from address 0100 to 010F (the first character will be at 0100, the second at 0101, the 16th at 010F, as th addresses are in hexadecimal notation), we start debug, and enter:
-D 100 10F                   'D is the debug display command
You will see the starting address for the first line of 16 characters that are displayed per line, followed by the "English" translation.  Very interesting!

Don't forget to enter Q at the debug - prompt, to Quit debug!

To see the program disassembled, or unassembled, use:
-U 100 10F
Logged

Ralph, using QuickBASIC 4.5 and Windows XP Home Edition and Service Pack 2, with HP LaserJet 4L printer.
Skyler
Ancient Guru
****
Posts: 564



« Reply #22 on: April 16, 2007, 07:54:02 AM »

I disassembled my name. I don't know what it's supposed to do though.
Logged

In the beginning, there is darkness the emptiness of a matrix waiting for the light. Then a single photon flares into existence. Then another. Soon, thousands more. Optronic pathways connect, subroutines emerge from the chaos, and a holographic consciousness is born." -The Doctor
Ralph
Ancient Guru
****
Posts: 544


« Reply #23 on: April 16, 2007, 01:16:38 PM »

Are you being serious?  Disassembling your name!  I guess this is how you did it:
S     k    
                      y
   l                                             e
               r
Logged

Ralph, using QuickBASIC 4.5 and Windows XP Home Edition and Service Pack 2, with HP LaserJet 4L printer.
Skyler
Ancient Guru
****
Posts: 564



« Reply #24 on: April 16, 2007, 03:57:17 PM »

No, I changed some memory values to my name and disassembled them.
Logged

In the beginning, there is darkness the emptiness of a matrix waiting for the light. Then a single photon flares into existence. Then another. Soon, thousands more. Optronic pathways connect, subroutines emerge from the chaos, and a holographic consciousness is born." -The Doctor
Ralph
Ancient Guru
****
Posts: 544


« Reply #25 on: April 16, 2007, 07:42:38 PM »

We have strayed so far from the original subject for this thread, that I believe it necessary to open a new one, if we are to continue postings that are different than that subject.  So, I'm out of here, and into a new one, called "Debug.exe and real small .com programs."
Logged

Ralph, using QuickBASIC 4.5 and Windows XP Home Edition and Service Pack 2, with HP LaserJet 4L printer.
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!