File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -1325,7 +1325,7 @@ export class Cpu6502 extends Base6502 {
1325
1325
const dis = disassembler . disassemble ( pc , true ) [ 0 ] ;
1326
1326
console . log (
1327
1327
utils . hexword ( pc ) ,
1328
- ( dis + " " ) . substr ( 0 , 15 ) ,
1328
+ ( dis + " " ) . substring ( 0 , 15 ) ,
1329
1329
utils . hexbyte ( a ) ,
1330
1330
utils . hexbyte ( x ) ,
1331
1331
utils . hexbyte ( y ) ,
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ export class Config {
53
53
}
54
54
55
55
setKeyLayout ( keyLayout ) {
56
- $ ( ".keyboard-layout" ) . text ( keyLayout [ 0 ] . toUpperCase ( ) + keyLayout . substr ( 1 ) ) ;
56
+ $ ( ".keyboard-layout" ) . text ( keyLayout [ 0 ] . toUpperCase ( ) + keyLayout . substring ( 1 ) ) ;
57
57
}
58
58
59
59
set65c02 ( enabled ) {
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ export function isFirefox() {
10
10
}
11
11
12
12
export function parseAddr ( s ) {
13
- if ( s [ 0 ] === "$" || s [ 0 ] === "&" ) return parseInt ( s . substr ( 1 ) , 16 ) ;
14
- if ( s . indexOf ( "0x" ) === 0 ) return parseInt ( s . substr ( 2 ) , 16 ) ;
13
+ if ( s [ 0 ] === "$" || s [ 0 ] === "&" ) return parseInt ( s . substring ( 1 ) , 16 ) ;
14
+ if ( s . indexOf ( "0x" ) === 0 ) return parseInt ( s . substring ( 2 ) , 16 ) ;
15
15
return parseInt ( s , 16 ) ;
16
16
}
17
17
Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ export class Debugger {
271
271
let addr = parseInt ( ops [ 0 ] , 16 ) ;
272
272
const setTo = ops [ 1 ] ;
273
273
for ( let i = 0 ; i < setTo . length ; i += 2 ) {
274
- const b = parseInt ( setTo . substr ( i , 2 ) , 16 ) ;
274
+ const b = parseInt ( setTo . substring ( i , 2 ) , 16 ) ;
275
275
this . cpu . writemem ( addr , b ) ;
276
276
addr ++ ;
277
277
}
@@ -280,8 +280,8 @@ export class Debugger {
280
280
setPatch ( patch ) {
281
281
_ . each ( patch . split ( ";" ) , ( inst ) => {
282
282
if ( inst [ 0 ] === "@" ) {
283
- const at = parseInt ( inst . substr ( 1 , 4 ) , 16 ) ;
284
- inst = inst . substr ( 5 ) ;
283
+ const at = parseInt ( inst . substring ( 1 , 4 ) , 16 ) ;
284
+ inst = inst . substring ( 5 ) ;
285
285
if ( ! this . patchInstructions [ at ] ) this . patchInstructions [ at ] = [ ] ;
286
286
this . patchInstructions [ at ] . push ( inst ) ;
287
287
} else {
You can’t perform that action at this time.
0 commit comments