ccz80

Would you like to react to this message? Create an account in a few clicks or log in to continue.
ccz80

ccz80 programming language


    copy adr #4000 to adr #c000 with #4000 Byte and retour..

    avatar
    funkheld


    Posts : 51
    Join date : 2009-12-16
    Age : 75
    Location : germany, lüneburg

    copy adr #4000 to adr #c000 with #4000 Byte and retour.. Empty copy adr #4000 to adr #c000 with #4000 Byte and retour..

    Post  funkheld Mon Dec 21, 2009 8:30 am

    Copyscreen von adr #4000 to adr #c000 or adr #c000 to adr #4000 with #4000 byte.
    For game with background and vorderground , "set_scr(#40)" > grafik is the adr #4000 (draw,plot usw) and then copy with "copy_40_c0()".
    "set_scr(#c0)" is the lucky screen adr #c000.

    Code:

    function inline byte copy_40_c0()
    {
       "ld de,#c000","ld hl,#4000",
       "ld bc,#4000","ldir"
    }

    function inline byte copy_c0_40()
    {
       "ld de,#4000","ld hl,#c000",
       "ld bc,#4000","ldir"
    }

    function inline byte set_scr(byte)
    {
      "call __scr_set_base"
    }

      Current date/time is Sat Apr 20, 2024 6:05 am