BASIC 10 chapter of the MEGA65 manual finished today

Es gibt 124 Antworten in diesem Thema, welches 42.784 mal aufgerufen wurde. Der letzte Beitrag (16. Februar 2022 um 21:21) ist von adtbm.

  • I changed the colour indices in the manual to the range 1 to 16.

    There is now also a pdf file in the repository, which has a date stamp in the filename:

    mega65-guide-191106.pdf

  • In the user guide there is an error in the example code at the description for the BASIC command "SCREEN" (page 183):

    Bitte melde dich an, um diesen Anhang zu sehen.

    After typing in the program as shown in the manual in Xemu (Mega65) I get an error message for line 30:

    Bitte melde dich an, um diesen Anhang zu sehen.

    In line 30 there is missing an argument (0 or 1) for the SCREEN OPEN command.

    If I added a "1" at the end of line 30 it seems working.

    Sadly a get an error message from the Xemu emulator about some feature still not be emulated.

    Bitte melde dich an, um diesen Anhang zu sehen.

    I think that the command in line 80: SCREEN CLOSE needed an argument too? But this I can not test with the Xemu.

  • Thanks for the hint.

    The BASIC-10 is very similar to the BASIC-7 of the Commodore 128.

    So I tested, where possible, on a real C128.

    For commands, that are not in the C128 BASIC-7, I had to rely on the preliminary Commodore C65 documentation.

    I think, I'll also install the emulator soon.

    The SCREEN description is corrected, a new pdf file created:

    Bitte melde dich an, um diesen Link zu sehen.

  • The BASIC 10 command "RGR" as described in the manual (version: MEGA-Book-191203.pdf) at page 183 doesn't work with the Xemu emulator (in Mega65 and C65 mode).

    Bitte melde dich an, um diesen Anhang zu sehen.

    It always returns the error "?UNIMPLEMENTED COMMAND ERROR". I had tested it with some different arguments which always return the same error.

    Bitte melde dich an, um diesen Anhang zu sehen.

    I can only test it with the Xemu emulator so I can not say whether the command is implemented in the real Mega65.

  • This is one of the unfinished implementations of the C65.

    Another example is the MOD function, which always returns zero regardless of the arguments.

    I think, the native MEGA-65 BASIC will have all commands and functions working.

    The C65 ROM's should also get a revision, which implements missing commands.

    But, maybe, this is a copyright problem?

  • I successfully built the manual from my macOS machine using LaTex. A great achievement!

    Regarding Bit Shifter concerns, is there some future plan for working on a MEGA65 copyright-free BASIC improvement over 10.0 from the C65? Thanks.

  • I successfully built the manual from my macOS machine using LaTex.

    You can download the always actual manual as a PDF file from github: Bitte melde dich an, um diesen Link zu sehen.

    Thanks. :)

  • Regarding Bit Shifter concerns, is there some future plan for working on a MEGA65 copyright-free BASIC improvement over 10.0 from the C65? Thanks.

    we will not try to finish the C65s BASIC 10 officially, to avoid any evtl. copyright issues. but of course, the community is free to work on this.

    we will also continue to work on the Open-Rom, but it does not have the highest priority at the moment.

    So if there is anybody who wants to work/improve the BASIC10 or the Open-Rom we would be happy to help and support him, but as M.E.G.A. we won't work on the official c65 Basic10.

    Bitte melde dich an, um diesen Link zu sehen. <- here you can find all MEGA65 related files, games, etc.

    Bitte melde dich an, um diesen Link zu sehen. <- MEGA65 main Homepage. links to all important MEGA65 sites (links on top of the page to Files, Forum, GitHub, Manual,etc.)

    Bitte melde dich an, um diesen Link zu sehen. <-Pauls Blog - constant updates about current tasks, project status, etc.

    Bitte melde dich an, um diesen Link zu sehen.,Bitte melde dich an, um diesen Link zu sehen. <- All Open-Source information regarding MEGA65. Found Bugs ? create an issue there please!

    Bitte melde dich an, um diesen Link zu sehen. <- Join for live chat support and more --- The Future is 8-bit !!!

  • Regarding Bit Shifter concerns, is there some future plan for working on a MEGA65 copyright-free BASIC improvement over 10.0 from the C65? Thanks.

    we will not try to finish the C65s BASIC 10 officially, to avoid any evtl. copyright issues. but of course, the community is free to work on this.

    we will also continue to work on the Open-Rom, but it does not have the highest priority at the moment.

    So if there is anybody who wants to work/improve the BASIC10 or the Open-Rom we would be happy to help and support him, but as M.E.G.A. we won't work on the official c65 Basic10.

    Thats ok for me.

    However, I hope there will be a complete MEGA-Basic 1.0 as a replacement for it.

  • Complete BASIC won't be available anytime soon. Right now I'm the only one working on the Open ROMs, and I currently focus on Kernal, where there is still A LOT to do.

  • According to the "C64DX SYSTEM SPECIFICATION" (Bitte melde dich an, um diesen Link zu sehen.) from Commodore these commands were still unimplemented in the C65 BASIC 10.

    I have tested them today in the Xemu emulator and they all return the error "?UNIMPLEMENTED COMMAND ERROR" instead of the error "?SYNTAX ERROR" normally returned by unknown commands:

    ------------------------------------------------

    LOCATE

    Token = $E6

    Usage:

    Moves the graphical cursor to the specified position on the current graphic screen.

    ------------------------------------------------

    QUIT

    Token = $FE,$1E

    (not mentioned in manual)

    ------------------------------------------------

    RCLR

    Token = $CD

    Usage:

    Returns the current colour index for the selected colour source.

    Colour sources are:

    0: 40 column background

    1: graphical foreground

    2: multicolour mode 1

    3: multicolour mode 2

    4: frame colour

    5: 80 column text

    6: 80 column background

    ------------------------------------------------

    RDOT

    Token = $D0

    Usage:

    Returns information about the graphical cursor.

    n = kind of information.

    0: x-position

    1: y-position

    2: colour index

    ------------------------------------------------

    RGR

    Token = $CC

    Usage:

    Returns information about the graphic mode.

    dummy = unused numeric expression.

    In text mode RGR returns zero. in graphics mode RGR returns a non zero value.

    ------------------------------------------------

    SCALE

    Token = $E9

    (not mentioned in manual)

    ------------------------------------------------

    SPRDEF

    Token = $FE,$1D

    Define a sprite pattern [*** NOT EXPECTED TO BE IMPLEMENTED ***]

    (not mentioned in manual)

    ------------------------------------------------

    VIEWPORT

    Token = $FE,$31

    (not mentioned in manual)

    ------------------------------------------------

    WIDTH

    Token = $FE,$1C

    (not mentioned in manual)

    ------------------------------------------------


    Sadly they are many of the graphic commands, so it's not so comfortable to use graphic in BASIC 10 as is was intended for a finished C65. :(

    Maybe it would be a good idea to mention in the manual that these commands are (still) not implemented in BASIC 10?

    So users who will try these commands are not too confused about the "?UNIMPLEMENTED COMMAND ERROR" they will get using them?

  • I found four more commands that were planned but are not implemented in the BASIC 10 of the C65.

    It seems that the graphic commands are the ones that mostly didn't see there implementation before the C65 is being stopped from Commodore. :/

    All commands return an "?UNIMPLEMENTED COMMAND ERROR" error in the Xemu emulator.

    ------------------------------------------------

    CUT

    Token = $E4

    Usage:

    cut graphic area

    ------------------------------------------------

    OFF

    Token = $FE,$24

    (subcommand)

    ------------------------------------------------

    PAINT

    Token = $DF

    Usage:

    graphic flood-fill

    ------------------------------------------------

    PASTE

    Token = $E3

    Usage:

    draw graphic area from cut buffer

    ------------------------------------------------

  • QUIT

    Token = $FE,$1E

    OFF

    Token = $FE,$24

    QUIT and OFF were "unimplemented commands" even back in basic v7, and nobody really knows what they were supposed to do.
    Have you tried "KEY ON" and "KEY OFF" yet?

    Yes, I'm the guy responsible for the Bitte melde dich an, um diesen Link zu sehen. cross assembler. And some Bitte melde dich an, um diesen Link zu sehen..

  • Have you tried "KEY ON" and "KEY OFF" yet?

    "KEY ON" and "KEY OFF" work fine in Xemu emulator for C65.

    Also the KEY <nr>,<command> for setting a KEY with a own command work well.

    Bitte melde dich an, um diesen Anhang zu sehen.

    Bitte melde dich an, um diesen Anhang zu sehen.

    Bitte melde dich an, um diesen Anhang zu sehen.

    Bitte melde dich an, um diesen Anhang zu sehen.

  • QUIT

    Token = $FE,$1E

    OFF

    Token = $FE,$24

    QUIT and OFF were "unimplemented commands" even back in basic v7, and nobody really knows what they were supposed to do.
    Have you tried "KEY ON" and "KEY OFF" yet?

    Quit & Off are commands from BASIC v3.6 (Commodore LCD).

    I'm not sure, but I think they were meant for Quit basic to 'Desktop'

    Commodore LCD has a kind of Dektop (Filer) and usualy starts into this Desktop.

    Basic must be explicitely started from the Desktop.

    What the OFF commands is for, I don't know.

  • Quit & Off are commands from BASIC v3.6 (Commodore LCD).

    I'm not sure, but I think they were meant for Quit basic to 'Desktop'

    Commodore LCD has a kind of Dektop (Filer) and usualy starts into this Desktop.

    Basic must be explicitely started from the Desktop.

    What the OFF commands is for, I don't know.

    In the Xemu there is also a LCD emulator and I tried the commands there.

    "QUIT" returns a "?SYNTAX ERROR" in BASIC 3.6. If the command was planned but not implemented, a "?UNIMPLEMENTED ERROR" return (e.g. at the "SPRDEF" command).

    "OFF" returns nothing to see, but no error message.

    "EXIT" leaves the BASIC and return to the main menu of the LCD.

    Bitte melde dich an, um diesen Anhang zu sehen.

    Bitte melde dich an, um diesen Anhang zu sehen.

    Bitte melde dich an, um diesen Anhang zu sehen.

    Bitte melde dich an, um diesen Anhang zu sehen.

    Bitte melde dich an, um diesen Anhang zu sehen.

  • Does anyone have the xemu binaries for Windows? I compiled xemu for linux, but I more prefer the binaries for Windows.

    ___________________________________________________________________________
    Ultimate64, TAPunio, SD2IEC, ZX Spectrum 48k, 1581 Replik, C64 Laptop, C64 MK II, C116, SX64,
    MiSTer FPGA, TI99/4A mit PEB, Atari 800 XL, Anycubic I3 Mega, Mega65, C64 Modular, Uniprom64