mirror of
https://github.com/irmen/prog8.git
synced 2025-01-03 06:29:54 +00:00
remove 'romsub' as a recognised alternative for 'extsub'
This commit is contained in:
parent
9da70bdf05
commit
fb0d9b46b0
@ -176,8 +176,6 @@ private fun AsmsubroutineContext.toAst(): Subroutine {
|
||||
}
|
||||
|
||||
private fun ExtsubroutineContext.toAst(): Subroutine {
|
||||
if(this.text.startsWith("romsub"))
|
||||
println("INFO ${toPosition().toClickableStr()} 'romsub' keyword is deprecated, change to 'extsub'") // TODO eventually, remove this 'romsub' support altogether
|
||||
val subdecl = asmsub_decl().toAst()
|
||||
val constbank = constbank?.toAst()?.number?.toUInt()?.toUByte()
|
||||
val varbank = varbank?.toAst()
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
main {
|
||||
sub start() {
|
||||
romsub $fff1 = WriteCharacter(ubyte character @A)
|
||||
extsub $fff1 = WriteCharacter(ubyte character @A)
|
||||
|
||||
for cx16.r0L in "\n\n\n.... Hello from Prog8 :-)"
|
||||
WriteCharacter(cx16.r0L)
|
||||
|
@ -296,7 +296,7 @@ asmsubroutine :
|
||||
;
|
||||
|
||||
extsubroutine :
|
||||
('romsub' | 'extsub') ('@bank' (constbank=integerliteral | varbank=scoped_identifier))? address=integerliteral '=' asmsub_decl
|
||||
'extsub' ('@bank' (constbank=integerliteral | varbank=scoped_identifier))? address=integerliteral '=' asmsub_decl
|
||||
;
|
||||
|
||||
asmsub_decl : identifier '(' asmsub_params? ')' asmsub_clobbers? asmsub_returns? ;
|
||||
|
Loading…
Reference in New Issue
Block a user