diff --git a/compiler/res/prog8lib/cx16/syslib.p8 b/compiler/res/prog8lib/cx16/syslib.p8 index 140e99584..1cfe1d7ad 100644 --- a/compiler/res/prog8lib/cx16/syslib.p8 +++ b/compiler/res/prog8lib/cx16/syslib.p8 @@ -2329,6 +2329,7 @@ asmsub init_system() { sta $00 ; select ram bank lda #0 sta $01 ; set ROM bank to kernal bank to speed up kernal calls + sta cx16.VERA_DC_BORDER tax tay cli diff --git a/docs/source/libraries.rst b/docs/source/libraries.rst index da0b48404..40ad0e2ee 100644 --- a/docs/source/libraries.rst +++ b/docs/source/libraries.rst @@ -250,7 +250,7 @@ callfar (bank, address, argumentword) -> uword The argumentword will be loaded into the A+Y registers before calling the routine. The uword value that the routine returns in the A+Y registers, will be returned. NOTE: this routine is very inefficient, so don't use it to call often. Set the bank yourself - or even write a custom tailored trampoline routine if you need to. Or use ``call`` if you can. + or even write a custom tailored trampoline routine that you reuse. Or use ``call`` if you can. callfar2 (bank, address, argA, argX, argY, argCarry) -> uword Identical to ``callfar``, except here you can give arguments not only for AY,