@@ -198,8 +198,8 @@ class Environment {
198198 const mappingPath = workspace . absolutePath ( obj . mappings . path ) ;
199199 const isAsm = extname ( obj . mappings . path ) == '.asm' ;
200200
201- const { chunk, headers , frames } = mappingsToBuffer ( this . mappings , obj . mappingDefinition ) ;
202- const out = isAsm ? stuffToAsm ( headers , frames , obj . name ) : chunk ;
201+ const { chunk, frames } = mappingsToBuffer ( this . mappings , obj . mappingDefinition ) ;
202+ const out = isAsm ? stuffToAsm ( frames , obj . mappings . label , true ) : chunk ;
203203 writeFile ( mappingPath , out , ( err , success ) => {
204204 err && errorMsg ( 'Error Saving Mappings' , err . message ) ;
205205 } ) ;
@@ -210,8 +210,8 @@ class Environment {
210210 const dplcPath = workspace . absolutePath ( obj . dplcs . path ) ;
211211 const isAsm = extname ( obj . dplcs . path ) == '.asm' ;
212212
213- const { chunk, headers , frames } = DPLCsToBuffer ( this . dplcs , obj . dplcDefinition ) ;
214- const out = isAsm ? stuffToAsm ( headers , frames , obj . name ) : chunk ;
213+ const { chunk, frames } = DPLCsToBuffer ( this . dplcs , obj . dplcDefinition ) ;
214+ const out = isAsm ? stuffToAsm ( frames , obj . dplcs . label ) : chunk ;
215215 writeFile ( dplcPath , out , ( err , success ) => {
216216 err && errorMsg ( 'Error Saving DPLCs' , err . message ) ;
217217 } ) ;
0 commit comments