User Tools

Site Tools


vax_vms_user

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
vax_vms_user [2026/05/25 04:40] adminvax_vms_user [2026/06/22 00:14] (current) admin
Line 1: Line 1:
-**# Show current DIR:**+**# Show current DIR like PWD:**
  
 <code>SHOW DEFAULT</code> <code>SHOW DEFAULT</code>
 +
 +**# Change DIR [000000] is the root of system**
 +
 +<code>SET DEFAULT DKA0:[directory]</code>
 +
 +**# Create directory**
 +<code>CREATE/DIRECTORY DUA0:[MYDIR]</code>
 +
 +DIR & SUB \\
 +<code>CREATE/DIRECTORY DUA0:[MYDIR.SUBDIR]</code>
 +
 +
 +**# List directory**
 +
 +<code>DIR</code>
  
 **# Run Basic:** **# Run Basic:**
Line 8: Line 23:
 <code>CTRL-Z to exit</code> <code>CTRL-Z to exit</code>
  
-**# Programming**+To save a program (Do this from within the basic interpreter) 
 +<code>SAVE PROGRAM.BAS</code>
  
 +To load a program (Do this from within the basic interpreter)
 +<code>OLD PROGRAM.BAS</code>
 +
 +**# Programming** \\
 +
 +Fix a file copied in from a modern computer \\
 +<code>$ SET FILE /ATTRIBUTES=(RFM:STMLF) filename</code>
 <code>EDIT /EDT filename.c</code> <code>EDIT /EDT filename.c</code>
 <code>CC FILENAME.C</code> <code>CC FILENAME.C</code>
Line 17: Line 40:
 Enter a simple helloworld: Enter a simple helloworld:
  
-<code>CREATE HELLO.C</code> +<code> 
-<code>\\ +CREATE HELLO.C 
-#include <stdio.h>\\ +#include <stdio.h> 
-\\ + 
-int main() {\\ +int main() { 
-    printf("Hello, VAX!\n");\\ +    printf("Hello, VAX!\n"); 
-    return 0;\\ +    return 0; 
-}\\+}
 </code> </code>
  
 +For fortran
 +
 +<code>FORTRAN FORTRANFILE.FOR</code>
 +
 +Link and run same as c
 +
 +**# Games**
 +
 +<code>ADVENTURE</code>
 +<code>NETHACK</code>
 +
 +More to come....
  
  
  
vax_vms_user.1779684002.txt.gz · Last modified: by admin