Skip to content

Commit

Permalink
Rename programs
Browse files Browse the repository at this point in the history
  • Loading branch information
connorslade committed Nov 10, 2023
1 parent a3252b1 commit 61cef58
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/target
dm42
dm42
out.free42
File renamed without changes.
5 changes: 5 additions & 0 deletions bin/conv.dm42 → bin/convert.dm42
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Basic unit converter
// Flag 3 - Exit to custom menu
// Flag 2 - Keep old value in Y
//
// - Length
// - Mass
Expand Down Expand Up @@ -64,6 +65,7 @@ def convert {
X<>Y
STO* "A"
DROP
if { FC? 02 } { DROP }
SF 81
} else {
// Convert "A" into X with X as the conversion factor
Expand Down Expand Up @@ -132,6 +134,7 @@ def acceleatation {
"M/S↑2", KEY 1 XEQ meter_per_second_squared
"G", KEY 2 XEQ gravity
convert()
GTO acceleatation
}

def meter_per_second_squared { 1 }
Expand All @@ -143,6 +146,7 @@ def force {
"N", KEY 1 XEQ newton
"lbf", KEY 2 XEQ pound_force
convert()
GTO force
}

def newton { 1 }
Expand Down Expand Up @@ -205,6 +209,7 @@ def time {
"day", KEY 4 XEQ day
"jyr", KEY 5 XEQ julian_year
convert()
GTO time
}

def second { 1 }
Expand Down
File renamed without changes.

0 comments on commit 61cef58

Please sign in to comment.