x68000:x-basic
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
x68000:x-basic [2014/12/09 16:31] – eidis | x68000:x-basic [2014/12/14 01:47] – [ATOF] eidis | ||
---|---|---|---|
Line 38: | Line 38: | ||
*Simple sample programs and examples. | *Simple sample programs and examples. | ||
- | ---- | + | ====== |
- | |**ABS**|**Standard function**| | + | |
- | | **Written expressions: | + | |**Standard function**| |
+ | |||
+ | | **Written expressions: | ||
| **Argument: | | **Argument: | ||
| **Return value: | | **Return value: | ||
Line 47: | Line 48: | ||
| **Use cases:**| | | | **Use cases:**| | | ||
- | ---- | + | ====== |
- | |**APAGE**|**GRAPH.FNC**| | + | |
- | | **Written expressions: | + | |**GRAPH.FNC**| |
+ | |||
+ | | **Written expressions: | ||
| **Argument: | | **Argument: | ||
| **Returns: | | **Returns: | ||
Line 65: | Line 67: | ||
| **Use cases:**| | | **Use cases:**| | ||
- | ---- | + | ====== |
- | |**ASC**|**Standard function**| | + | |
- | | **Written expressions: | + | |**Standard function**| |
+ | |||
+ | | **Written expressions: | ||
| **Argument: | | **Argument: | ||
| **Return value: | | **Return value: | ||
Line 77: | Line 80: | ||
| **Use cases:**| | | | **Use cases:**| | | ||
- | ---- | + | ====== |
- | |**ATAN**|**Standard function**| | + | |
- | | **Written formula: | + | |**Standard function**| |
+ | |||
+ | | **Written formula: | ||
| **Argument: | | **Argument: | ||
| **Return value: | | **Return value: | ||
Line 87: | Line 91: | ||
| **Use cases:**| | | | **Use cases:**| | | ||
- | ---- | + | ====== |
- | |**ATOF**|**Standard function**| | + | |
- | | **Written expressions: | + | |**Standard function**| |
+ | |||
+ | | **Written expressions: | ||
| **Argument: | | **Argument: | ||
| **Return value: | | **Return value: | ||
Line 96: | Line 101: | ||
| |The space or tab characters of <color red> | | |The space or tab characters of <color red> | ||
| |<color red> | | |<color red> | ||
- | | |The following format of <color red> | + | | |The following format of <color red> |
+ | | |**[**< | ||
+ | | **Example: | ||
+ | | **→**|ECVT , fcvt , gcvt | | ||
+ | |||
+ | |<color red> | ||
+ | |<color red> | ||
+ | |<color red> | ||
+ | |index |Index consists of "< | ||
+ | |||
+ | ====== ATOI ====== | ||
+ | |||
+ | |**Standard function**| | ||
+ | |||
+ | | **Written expressions: | ||
+ | | **Argument: | ||
+ | | **Return value: | ||
+ | | <color red> | ||
+ | | |Space or tab characters at the begining of <color red> | ||
+ | | |<color red> | ||
+ | | |<color red> | ||
+ | | |**[**< | ||
+ | | **→**|itoa | | ||
+ | |||
+ | |<color red> | ||
+ | |<color red> | ||
+ | |<color red> | ||
+ | |||
+ | ====== AUTO ====== | ||
+ | |||
+ | |**Command**| | ||
+ | |||
+ | | **Written expressions: | ||
+ | | **Abbreviation: | ||
+ | | <color red> | ||
+ | | |You can omit the <color red> | ||
+ | | |If a line number overlaps with existing line, the contents of the line will be displayed. In this case you can press return key without typing anything and it will not change the contents of the line. | | ||
+ | | |Press BREAK key (or CTRL+C) to release the auto function. The current program line will not be saved. | | ||
+ | |||
+ | |For example: | | | ||
+ | |auto |line numbers will begin with 10, 20, 30 (the same as auto 10,10) | | ||
+ | |auto 100 |line numbers will begin with 100, 110, 120 | | ||
+ | |auto ,5 |line numbers will begin with 10, 15, 20 | | ||
+ | |||
+ | ====== A_PLAY ====== | ||
+ | |||
+ | |**AUDIO.FNC**| | ||
+ | |||
+ | | **Written expressions: | ||
+ | | **Argument: | ||
+ | | **Return value: | ||
+ | | <color red> | ||
+ | | |na ... Number of one-dimensional array name that contains the PCM data. | | ||
+ | | |sf ... sampling frequency | | ||
+ | | |< | ||
+ | 0 ... 3.9KHz | ||
+ | 1 ... 5.2KHz | ||
+ | 2 ... 7.8KHz | ||
+ | 3 ... 10.4KHz | ||
+ | 4 ... 15.6KHz | ||
+ | </ | ||
+ | | |As a general rule, use the same sampling frequency <color red> | ||
+ | | |md ... audio output mode (audio signal output mode from the audio output terminal of the computer) | | ||
+ | | |< | ||
+ | 0 ... silence | ||
+ | 1 ... left channel | ||
+ | 2 ... right channel | ||
+ | 3 ... stereo output | ||
+ | </ | ||
+ | | |lng ... length from 0 index of na array to play | | ||
+ | | |Values that can be used as <color red> | ||
+ | | |All PCM data will be played if <color red> | ||
+ | | **Use cases:**| | |
x68000/x-basic.txt · Last modified: 2019/08/27 20:45 by 127.0.0.1