Skip to content

Commit

Permalink
Replace [ix] notation by [iy] notation
Browse files Browse the repository at this point in the history
  • Loading branch information
rgiot committed Jan 21, 2012
1 parent 606b015 commit d6302d9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ftplugin/z80/z80_edit_functions.vim
Expand Up @@ -123,8 +123,15 @@ function! Z80Sjamsplus2vasm()
exec "%s/\\(.*[^e]\\)dup\\(\\s*.*\\)/\\1repeat\\2/"
catch
endtry
" todo use endrepeat when corrected
try
exec "%s/\\(.*\\)edup\\(\\s*.*\\)/\\1endrepeat\\2/"
exec "%s/\\(.*\\)edup\\(\\s*.*\\)/\\1endr\\2/"
catch
endtry

" Remove bracket notation for ix/iy
try
exec "%s/\\[\\(i[xy]\\)\\(*\\)\\]/(\1\2)/"
catch
endtry

Expand Down

0 comments on commit d6302d9

Please sign in to comment.